python3Packages.docutils: disable for Python < 3.7
This commit is contained in:
parent
d2fa83297a
commit
061bb59485
1 changed files with 5 additions and 2 deletions
|
@ -2,13 +2,16 @@
|
||||||
, lib
|
, lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy3k
|
|
||||||
, python
|
, python
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "docutils";
|
pname = "docutils";
|
||||||
version = "0.19";
|
version = "0.19";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
|
@ -18,7 +21,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
# Only Darwin needs LANG, but we could set it in general.
|
# Only Darwin needs LANG, but we could set it in general.
|
||||||
# It's done here conditionally to prevent mass-rebuilds.
|
# It's done here conditionally to prevent mass-rebuilds.
|
||||||
checkPhase = lib.optionalString (isPy3k && stdenv.isDarwin) ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + ''
|
checkPhase = lib.optionalString stdenv.isDarwin ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + ''
|
||||||
${python.interpreter} test/alltests.py
|
${python.interpreter} test/alltests.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue