pythonPackages.clikit: fix dependency on crashtest
From clikit's pyproject.toml: > Crashtest is only needed for Python ^3.6 to provide > better error messsages
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, isPy27
|
, isPy27, pythonAtLeast
|
||||||
, pylev, pastel, typing, enum34, crashtest }:
|
, pylev, pastel, typing, enum34, crashtest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@@ -12,8 +12,10 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
crashtest pylev pastel
|
pylev pastel
|
||||||
] ++ lib.optionals isPy27 [ typing enum34 ];
|
]
|
||||||
|
++ lib.optionals (pythonAtLeast "3.6") [ crashtest ]
|
||||||
|
++ lib.optionals isPy27 [ typing enum34 ];
|
||||||
|
|
||||||
# The Pypi tarball doesn't include tests, and the GitHub source isn't
|
# The Pypi tarball doesn't include tests, and the GitHub source isn't
|
||||||
# buildable until we bootstrap poetry, see
|
# buildable until we bootstrap poetry, see
|
||||||
|
|||||||
Reference in New Issue
Block a user