From 4e0f91170f11e2fd331e19fc6092975c558a3177 Mon Sep 17 00:00:00 2001 From: ento Date: Wed, 22 Jul 2020 11:34:58 -0800 Subject: [PATCH] pythonPackages.clikit: fix dependency on crashtest From clikit's pyproject.toml: > Crashtest is only needed for Python ^3.6 to provide > better error messsages --- pkgs/development/python-modules/clikit/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/clikit/default.nix b/pkgs/development/python-modules/clikit/default.nix index da2958067238..7b07b0945919 100644 --- a/pkgs/development/python-modules/clikit/default.nix +++ b/pkgs/development/python-modules/clikit/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchPypi -, isPy27 +, isPy27, pythonAtLeast , pylev, pastel, typing, enum34, crashtest }: buildPythonPackage rec { @@ -12,8 +12,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - crashtest pylev pastel - ] ++ lib.optionals isPy27 [ typing enum34 ]; + pylev pastel + ] + ++ lib.optionals (pythonAtLeast "3.6") [ crashtest ] + ++ lib.optionals isPy27 [ typing enum34 ]; # The Pypi tarball doesn't include tests, and the GitHub source isn't # buildable until we bootstrap poetry, see