10 buildPythonPackage rec {
15 inherit pname version;
16 sha256 = "c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc";
19 # Only Darwin needs LANG, but we could set it in general.
20 # It's done here conditionally to prevent mass-rebuilds.
21 checkPhase = lib.optionalString (isPy3k && stdenv.isDarwin) ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + ''
22 ${python.interpreter} test/alltests.py
25 # Create symlinks lacking a ".py" suffix, many programs depend on these names
27 for f in $out/bin/*.py; do
28 ln -s $(basename $f) $out/bin/$(basename $f .py)
33 description = "Python Documentation Utilities";
34 homepage = "http://docutils.sourceforge.net/";
35 license = with licenses; [ publicDomain bsd2 psfl gpl3Plus ];
36 maintainers = with maintainers; [ AndersonTorres ];