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