summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/indexed-gzip/default.nix
blob: 1e5a52193d2e645e7e080a8e247158eb97a7c859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  cython,
  zlib,
}:

buildPythonPackage rec {
  pname = "indexed_gzip";
  version = "1.9.5";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-EFNmVndZ22x9+GbYaWEd7Tu4PVwOUPuwHQLBkiuYtFc=";
  };

  nativeBuildInputs = [
    cython
    setuptools
  ];

  buildInputs = [ zlib ];

  # Too complicated to get to work, not a simple pytest call.
  doCheck = false;

  pythonImportsCheck = [ "indexed_gzip" ];

  meta = {
    description = "Python library to seek within compressed gzip files";
    homepage = "https://github.com/pauldmccarthy/indexed_gzip";
    license = lib.licenses.zlib;
    maintainers = with lib.maintainers; [ mxmlnkn ];
  };
}