9 buildPythonPackage rec {
13 disabled = pythonOlder "3.7";
15 format = "setuptools";
18 inherit pname version;
19 hash = "sha256-8IpOJ2w6FYOobc4+NKuj/gTQK7ot1R7RYQYkToqSPjs=";
22 # Only Darwin needs LANG, but we could set it in general.
23 # It's done here conditionally to prevent mass-rebuilds.
24 checkPhase = lib.optionalString stdenv.isDarwin ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + ''
25 ${python.interpreter} test/alltests.py
28 # Create symlinks lacking a ".py" suffix, many programs depend on these names
30 for f in $out/bin/*.py; do
31 ln -s $(basename $f) $out/bin/$(basename $f .py)
36 description = "Python Documentation Utilities";
37 homepage = "http://docutils.sourceforge.net/";
38 license = with licenses; [ publicDomain bsd2 psfl gpl3Plus ];
39 maintainers = with maintainers; [ AndersonTorres ];