python: docutils: 0.15.2 -> 0.16

This commit is contained in:
Frederik Rietdijk 2020-02-06 16:07:31 +01:00 committed by Frederik Rietdijk
parent ec63edf6fd
commit 43a0755d82

View file

@ -9,20 +9,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docutils"; pname = "docutils";
version = "0.15.2"; version = "0.16";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "168s5v7bff5ar9jspr6wn823q1sbn0jhnbp9clk41nl8j09fmbm2"; sha256 = "c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc";
}; };
# 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" '' + (if isPy3k then '' checkPhase = lib.optionalString (isPy3k && stdenv.isDarwin) ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + ''
${python.interpreter} test3/alltests.py
'' else ''
${python.interpreter} test/alltests.py ${python.interpreter} test/alltests.py
''); '';
# Create symlinks lacking a ".py" suffix, many programs depend on these names # Create symlinks lacking a ".py" suffix, many programs depend on these names
postFixup = '' postFixup = ''
@ -31,10 +29,6 @@ buildPythonPackage rec {
done done
''; '';
# Four tests are broken with 3.8.
# test_writers.test_odt.DocutilsOdtTestCase
doCheck = !isPy38;
meta = { meta = {
description = "Docutils -- Python Documentation Utilities"; description = "Docutils -- Python Documentation Utilities";
homepage = http://docutils.sourceforge.net/; homepage = http://docutils.sourceforge.net/;