From 527c39464e9becbcd303c688d4dd0b5fbcc5d094 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Apr 2022 12:21:32 +0200 Subject: [PATCH] python3Packages.slicerator: disable on older Python releases --- .../python-modules/slicerator/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/slicerator/default.nix b/pkgs/development/python-modules/slicerator/default.nix index 2fc0cb41d1f1..a1240f47c4e8 100644 --- a/pkgs/development/python-modules/slicerator/default.nix +++ b/pkgs/development/python-modules/slicerator/default.nix @@ -2,20 +2,21 @@ , buildPythonPackage , fetchPypi , python -, six +, pythonOlder }: buildPythonPackage rec { - version = "1.1.0"; pname = "slicerator"; + version = "1.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-RAEKf1zYdoDAchO1yr6B0ftxJSlilD5Tc+59FGBdYEY="; + hash = "sha256-RAEKf1zYdoDAchO1yr6B0ftxJSlilD5Tc+59FGBdYEY="; }; - propagatedBuildInputs = [ six ]; - checkPhase = '' ${python.interpreter} run_tests.py ''; @@ -24,9 +25,9 @@ buildPythonPackage rec { doCheck = false; meta = with lib; { - homepage = "https://github.com/soft-matter/slicerator"; description = "A lazy-loading, fancy-sliceable iterable"; + homepage = "https://github.com/soft-matter/slicerator"; license = licenses.bsdOriginal; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }