python3Packages.docutils: disable for Python < 3.7

This commit is contained in:
Robert Schütz 2022-12-09 08:18:08 -08:00
parent d2fa83297a
commit 061bb59485

View file

@ -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
''; '';