python37Packages.pelican: fix darwin build
This commit is contained in:
parent
7cbf9e22a2
commit
4fca2ef585
@ -12,13 +12,19 @@ buildPythonPackage rec {
|
|||||||
owner = "getpelican";
|
owner = "getpelican";
|
||||||
repo = "pelican";
|
repo = "pelican";
|
||||||
rev = version;
|
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;
|
doCheck = true;
|
||||||
|
|
||||||
|
# Exclude custom locale test, which files were removed above to fix the source checksum
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
python -Wd -m unittest discover
|
nosetests -sv --exclude=test_custom_locale_generation_works pelican
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -29,7 +35,6 @@ buildPythonPackage rec {
|
|||||||
# pandoc
|
# pandoc
|
||||||
git
|
git
|
||||||
mock
|
mock
|
||||||
nose
|
|
||||||
markdown
|
markdown
|
||||||
typogrify
|
typogrify
|
||||||
];
|
];
|
||||||
@ -39,6 +44,10 @@ buildPythonPackage rec {
|
|||||||
blinker pillow beautifulsoup4 markupsafe lxml
|
blinker pillow beautifulsoup4 markupsafe lxml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
nose
|
||||||
|
];
|
||||||
|
|
||||||
postPatch= ''
|
postPatch= ''
|
||||||
substituteInPlace pelican/tests/test_pelican.py \
|
substituteInPlace pelican/tests/test_pelican.py \
|
||||||
--replace "'git'" "'${git}/bin/git'"
|
--replace "'git'" "'${git}/bin/git'"
|
||||||
|
Loading…
Reference in New Issue
Block a user