Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
|
|
# build-system
|
|
setuptools,
|
|
versioningit,
|
|
|
|
# native dependencies
|
|
isa-l,
|
|
|
|
# tests
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "isal";
|
|
version = "1.7.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pycompression";
|
|
repo = "python-isal";
|
|
rev = "v${version}";
|
|
hash = "sha256-gvUVSGarPA4KupQTd61x75CfqNVqZfFC1zq0R21Clf8=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./version.patch {
|
|
inherit version;
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioningit
|
|
];
|
|
|
|
buildInputs = [ isa-l ];
|
|
|
|
env.PYTHON_ISAL_LINK_DYNAMIC = true;
|
|
|
|
nativeCheckInputs = [
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [ "tests" ];
|
|
|
|
disabledTests = [
|
|
# calls `python -m isal` and fails on import
|
|
"test_compress_fast_best_are_exclusive"
|
|
"test_compress_infile_outfile"
|
|
"test_compress_infile_outfile_default"
|
|
"test_decompress_cannot_have_flags_compression"
|
|
"test_decompress_infile_outfile_error"
|
|
];
|
|
|
|
pythonImportsCheck = [ "isal" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/pycompression/python-isal/blob/${src.rev}/CHANGELOG.rst";
|
|
description = "Faster zlib and gzip compatible compression and decompression by providing python bindings for the isa-l library";
|
|
homepage = "https://github.com/pycompression/python-isal";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|