python37Packages.pelican: fix darwin build

This commit is contained in:
Mario Rodas 2019-07-19 21:58:04 -05:00
parent 7cbf9e22a2
commit 4fca2ef585
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -12,13 +12,19 @@ buildPythonPackage rec {
owner = "getpelican";
repo = "pelican";
rev = version;
sha256 = "0ag8il1b8ckfcv0f87ryrmw52k9m3xd025b4m6fvr8lsffyzv626";
sha256 = "1ww3kc5bzp5q7b23n2vmzqch1z06l7vrscn0h96cscvk45sxc7yz";
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
extraPostFetch = ''
rm -r $out/pelican/tests/output/custom_locale/posts
'';
};
doCheck = true;
# Exclude custom locale test, which files were removed above to fix the source checksum
checkPhase = ''
python -Wd -m unittest discover
nosetests -sv --exclude=test_custom_locale_generation_works pelican
'';
buildInputs = [
@ -29,7 +35,6 @@ buildPythonPackage rec {
# pandoc
git
mock
nose
markdown
typogrify
];
@ -39,6 +44,10 @@ buildPythonPackage rec {
blinker pillow beautifulsoup4 markupsafe lxml
];
checkInputs = [
nose
];
postPatch= ''
substituteInPlace pelican/tests/test_pelican.py \
--replace "'git'" "'${git}/bin/git'"