python3Packages.file_read_backwards: init at 2.0.0

This commit is contained in:
Johannes Arnold 2021-09-02 23:53:45 +02:00
parent a85dc0c5a0
commit 2fe87635b5
3 changed files with 28 additions and 1 deletions

View File

@ -431,7 +431,10 @@ in
sha256 = "13q20g7brabplc198jh67lk65rn140r8217iak9b2jy3in8fggv4";
};
propagatedBuildInputs = with super; [ awesome-slugify setuptools pillow sarge six psutil file_read_backwards ];
# 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 ];
meta = with lib; {
description = "Stabilized timelapses for Octoprint";

View File

@ -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" ];
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 ];
};
}

View File

@ -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 { };