python3Packages.zstandard: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-23 10:31:47 +01:00 committed by GitHub
parent d1fe50a4ac
commit 523a596ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,29 +3,41 @@
, fetchPypi , fetchPypi
, cffi , cffi
, hypothesis , hypothesis
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zstandard"; pname = "zstandard";
version = "0.17.0"; version = "0.17.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "fa9194cb91441df7242aa3ddc4cb184be38876cb10dd973674887f334bafbfb6"; sha256 = "fa9194cb91441df7242aa3ddc4cb184be38876cb10dd973674887f334bafbfb6";
}; };
propagatedNativeBuildInputs = [ cffi ]; propagatedNativeBuildInputs = [
cffi
];
propagatedBuildInputs = [ cffi ]; propagatedBuildInputs = [
cffi
];
checkInputs = [ hypothesis ]; checkInputs = [
hypothesis
];
pythonImportsCheck = [ "zstandard" ]; pythonImportsCheck = [
"zstandard"
];
meta = with lib; { meta = with lib; {
description = "zstandard bindings for Python"; description = "zstandard bindings for Python";
homepage = "https://github.com/indygreg/python-zstandard"; homepage = "https://github.com/indygreg/python-zstandard";
license = licenses.bsdOriginal; license = licenses.bsdOriginal;
maintainers = [ maintainers.arnoldfarkas ]; maintainers = with maintainers; [ arnoldfarkas ];
}; };
} }