1{ lib, buildPythonPackage, fetchPypi, mock }: 2 3buildPythonPackage rec { 4 pname = "file-read-backwards"; 5 version = "3.0.0"; 6 7 src = fetchPypi { 8 pname = "file_read_backwards"; 9 inherit version; 10 sha256 = "sha256-USw+U0BDUnqPrioLcVGqJV8towPnf9QPfc9CoeCRzCY="; 11 }; 12 13 nativeCheckInputs = [ mock ]; 14 pythonImportsCheck = [ "file_read_backwards" ]; 15 16 meta = with lib; { 17 homepage = "https://github.com/RobinNil/file_read_backwards"; 18 description = "Memory efficient way of reading files line-by-line from the end of file"; 19 license = licenses.mit; 20 maintainers = with maintainers; [ j0hax ]; 21 }; 22}