1{ lib 2, fetchurl 3, buildPythonPackage 4, isPy3k 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "docutils"; 10 version = "0.14"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/docutils/${pname}.tar.gz"; 14 sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"; 15 }; 16 17 checkPhase = if isPy3k then '' 18 ${python.interpreter} test3/alltests.py 19 '' else '' 20 ${python.interpreter} test/alltests.py 21 ''; 22 23 # Create symlinks lacking a ".py" suffix, many programs depend on these names 24 postFixup = '' 25 (cd $out/bin && for f in *.py; do 26 ln -s $f $(echo $f | sed -e 's/\.py$//') 27 done) 28 ''; 29 30 meta = { 31 description = "Docutils -- Python Documentation Utilities"; 32 homepage = http://docutils.sourceforge.net/; 33 maintainers = with lib.maintainers; [ garbas AndersonTorres ]; 34 }; 35}