Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ 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 ]; };}