2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mock,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
unittestCheckHook,
|
|
|
|
}:
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "file-read-backwards";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.1.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "file_read_backwards";
|
|
|
|
inherit version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-vQRZO8GTigAyJL5FHV1zXx9EkOHnClaM6NMwu3ZSpoQ=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [ "file_read_backwards" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Memory efficient way of reading files line-by-line from the end of file";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/RobinNil/file_read_backwards";
|
|
|
|
changelog = "https://github.com/RobinNil/file_read_backwards/blob/v${version}/HISTORY.rst";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ j0hax ];
|
|
|
|
};
|
|
|
|
}
|