1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, cython 6, zlib 7}: 8 9buildPythonPackage rec { 10 pname = "indexed_gzip"; 11 version = "1.8.5"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-h9JgYq9KxmknaRuMgq+5YWA8tUaFk+lclkqdNAnr/cI="; 19 }; 20 21 nativeBuildInputs = [ cython ]; 22 23 buildInputs = [ zlib ]; 24 25 # Too complicated to get to work, not a simple pytest call. 26 doCheck = false; 27 28 pythonImportsCheck = [ "indexed_gzip" ]; 29 30 meta = with lib; { 31 description = "Python library to seek within compressed gzip files"; 32 homepage = "https://github.com/pauldmccarthy/indexed_gzip"; 33 license = licenses.zlib; 34 maintainers = with lib.maintainers; [ mxmlnkn ]; 35 platforms = platforms.all; 36 }; 37}