Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

octoprint.python.pkgs.octolapse: init at 0.4.1 #136513

Merged
merged 2 commits into from Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions pkgs/applications/misc/octoprint/plugins.nix
Expand Up @@ -420,6 +420,30 @@ in
};
};

octolapse = buildPlugin rec {
pname = "Octolapse";
version = "0.4.1";

src = fetchFromGitHub {
owner = "FormerLurker";
repo = pname;
rev = "v${version}";
sha256 = "13q20g7brabplc198jh67lk65rn140r8217iak9b2jy3in8fggv4";
};

# Test fails due to code executed on import, see #136513
#pythonImportsCheck = [ "octoprint_octolapse" ];

propagatedBuildInputs = with super; [ awesome-slugify setuptools pillow sarge six psutil file-read-backwards ];
j0hax marked this conversation as resolved.
Show resolved Hide resolved

meta = with lib; {
description = "Stabilized timelapses for Octoprint";
homepage = "https://github.com/FormerLurker/OctoLapse";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ illustris j0hax ];
};
};

octoprint-dashboard = buildPlugin rec {
pname = "OctoPrint-Dashboard";
version = "1.18.3";
Expand Down
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/file-read-backwards/default.nix
@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, mock }:

buildPythonPackage rec {
pname = "file-read-backwards";
version = "2.0.0";

src = fetchPypi {
pname = "file_read_backwards";
inherit version;
sha256 = "fd50d9089b412147ea3c6027e2ad905f977002db2918cf315d64eed23d6d6eb8";
};

checkInputs = [ mock ];
pythonImportsCheck = [ "file_read_backwards" ];

j0hax marked this conversation as resolved.
Show resolved Hide resolved
meta = with lib; {
homepage = "https://github.com/RobinNil/file_read_backwards";
description = "Memory efficient way of reading files line-by-line from the end of file";
license = licenses.mit;
maintainers = with maintainers; [ j0hax ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2796,6 +2796,8 @@ in {

fields = callPackage ../development/python-modules/fields { };

file-read-backwards = callPackage ../development/python-modules/file-read-backwards { };

filebrowser_safe = callPackage ../development/python-modules/filebrowser_safe { };

filebytes = callPackage ../development/python-modules/filebytes { };
Expand Down