587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
37 lines
777 B
Nix
37 lines
777 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, cython
|
|
, zlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "indexed_gzip";
|
|
version = "1.8.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-dryq1LLC+lVHj/i+m60ubGGItlX5/clCnwNGrexI92I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython setuptools ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
# Too complicated to get to work, not a simple pytest call.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "indexed_gzip" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to seek within compressed gzip files";
|
|
homepage = "https://github.com/pauldmccarthy/indexed_gzip";
|
|
license = licenses.zlib;
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
};
|
|
}
|