depot/third_party/nixpkgs/pkgs/development/python-modules/indexed-gzip/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

37 lines
789 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, zlib
}:
buildPythonPackage rec {
pname = "indexed_gzip";
version = "1.8.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dryq1LLC+lVHj/i+m60ubGGItlX5/clCnwNGrexI92I=";
};
nativeBuildInputs = [ cython ];
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 ];
platforms = platforms.all;
};
}