Files
nixpkgs/pkgs/development/python-modules/file-read-backwards/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
899 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "file-read-backwards";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "file_read_backwards";
inherit version;
hash = "sha256-VHjTBeuuquj+PGWFok38MmIXAiRFCsyTITmPDSbN0Qk=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "file_read_backwards" ];
meta = {
description = "Memory efficient way of reading files line-by-line from the end of file";
homepage = "https://github.com/RobinNil/file_read_backwards";
changelog = "https://github.com/RobinNil/file_read_backwards/blob/v${version}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ j0hax ];
};
}