python3Packages.slicerator: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-08 12:21:32 +02:00 committed by GitHub
parent e75fcaf708
commit 527c39464e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,20 +2,21 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python , python
, six , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "1.1.0";
pname = "slicerator"; pname = "slicerator";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-RAEKf1zYdoDAchO1yr6B0ftxJSlilD5Tc+59FGBdYEY="; hash = "sha256-RAEKf1zYdoDAchO1yr6B0ftxJSlilD5Tc+59FGBdYEY=";
}; };
propagatedBuildInputs = [ six ];
checkPhase = '' checkPhase = ''
${python.interpreter} run_tests.py ${python.interpreter} run_tests.py
''; '';
@ -24,9 +25,9 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/soft-matter/slicerator";
description = "A lazy-loading, fancy-sliceable iterable"; description = "A lazy-loading, fancy-sliceable iterable";
homepage = "https://github.com/soft-matter/slicerator";
license = licenses.bsdOriginal; license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }