2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, cython
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "indexed_bzip2";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.6.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-3HUiigZR91/nbOAMOuSHGcPtqkkEaj3VepyMhmKOHpI=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ cython setuptools ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "indexed_bzip2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for parallel decompression and seeking within compressed bzip2 files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ibzip2";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/mxmlnkn/indexed_bzip2";
|
|
|
|
license = licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
|
|
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
|
|
};
|
|
|
|
}
|