depot/third_party/nixpkgs/pkgs/development/python-modules/indexed-bzip2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
868 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "indexed_bzip2";
version = "1.6.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-3HUiigZR91/nbOAMOuSHGcPtqkkEaj3VepyMhmKOHpI=";
};
nativeBuildInputs = [
cython
setuptools
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "indexed_bzip2" ];
meta = with lib; {
description = "Python library for parallel decompression and seeking within compressed bzip2 files";
mainProgram = "ibzip2";
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 ];
};
}