summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/indexed-bzip2/default.nix
blob: 7f11176f0841f38fa1fc60cbb4c6f8df29643ae4 (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
{
  lib,
  buildPythonPackage,
  cython,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "indexed_bzip2";
  version = "1.6.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3HUiigZR91/nbOAMOuSHGcPtqkkEaj3VepyMhmKOHpI=";
  };

  nativeBuildInputs = [
    cython
    setuptools
  ];

  # has no tests
  doCheck = false;

  pythonImportsCheck = [ "indexed_bzip2" ];

  meta = {
    description = "Python library for parallel decompression and seeking within compressed bzip2 files";
    mainProgram = "ibzip2";
    homepage = "https://github.com/mxmlnkn/indexed_bzip2";
    license = lib.licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
    maintainers = with lib.maintainers; [ mxmlnkn ];
  };
}