1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchPypi,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "indexed_bzip2";
12 version = "1.6.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-3HUiigZR91/nbOAMOuSHGcPtqkkEaj3VepyMhmKOHpI=";
20 };
21
22 nativeBuildInputs = [
23 cython
24 setuptools
25 ];
26
27 # has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "indexed_bzip2" ];
31
32 meta = with lib; {
33 description = "Python library for parallel decompression and seeking within compressed bzip2 files";
34 mainProgram = "ibzip2";
35 homepage = "https://github.com/mxmlnkn/indexed_bzip2";
36 license = licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
37 maintainers = with lib.maintainers; [ mxmlnkn ];
38 };
39}