1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 mock, 6 pythonOlder, 7 setuptools, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "file-read-backwards"; 13 version = "3.1.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-vQRZO8GTigAyJL5FHV1zXx9EkOHnClaM6NMwu3ZSpoQ="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ 27 mock 28 unittestCheckHook 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}