1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

Merge pull request #50886 from marsam/feature/fix-python3-docutils

pythonPackages.docutils: fix python3 build
This commit is contained in:
Daiderd Jordan 2018-11-21 23:57:29 +01:00 committed by GitHub
commit 36e4be06e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,17 +14,15 @@ buildPythonPackage rec {
sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji";
};
checkPhase = if isPy3k then ''
${python.interpreter} test3/alltests.py
'' else ''
${python.interpreter} test/alltests.py
checkPhase = ''
LANG="en_US.UTF-8" ${python.interpreter} ${if isPy3k then "test3/alltests.py" else "test/alltests.py"}
'';
# Create symlinks lacking a ".py" suffix, many programs depend on these names
postFixup = ''
(cd $out/bin && for f in *.py; do
ln -s $f $(echo $f | sed -e 's/\.py$//')
done)
for f in $out/bin/*.py; do
ln -s $(basename $f) $out/bin/$(basename $f .py)
done
'';
meta = {