1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 pytest-mock, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "file-read-backwards"; 13 version = "3.2.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "file_read_backwards"; 20 inherit version; 21 hash = "sha256-VHjTBeuuquj+PGWFok38MmIXAiRFCsyTITmPDSbN0Qk="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ 27 pytest-mock 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "file_read_backwards" ]; 32 33 meta = with lib; { 34 description = "Memory efficient way of reading files line-by-line from the end of file"; 35 homepage = "https://github.com/RobinNil/file_read_backwards"; 36 changelog = "https://github.com/RobinNil/file_read_backwards/blob/v${version}/HISTORY.rst"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ j0hax ]; 39 }; 40}