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