@@ -12,13 +12,19 @@ buildPythonPackage rec {
1212 owner = "getpelican";
1313 repo = "pelican";
1414 rev = version;
15− sha256 = "0ag8il1b8ckfcv0f87ryrmw52k9m3xd025b4m6fvr8lsffyzv626";
15+ sha256 = "1ww3kc5bzp5q7b23n2vmzqch1z06l7vrscn0h96cscvk45sxc7yz";
16+ # Remove unicode file names which leads to different checksums on HFS+
17+ # vs. other filesystems because of unicode normalisation.
18+ extraPostFetch = ''
19+ rm -r $out/pelican/tests/output/custom_locale/posts
20+ '';
1621 };
1722
1823 doCheck = true;
1924
25+ # Exclude custom locale test, which files were removed above to fix the source checksum
2026 checkPhase = ''
21− python -Wd -m unittest discover
27+ nosetests -sv --exclude=test_custom_locale_generation_works pelican
2228 '';
2329
2430 buildInputs = [
@@ -29,7 +35,6 @@ buildPythonPackage rec {
2935 # pandoc
3036 git
3137 mock
32− nose
3338 markdown
3439 typogrify
3540 ];
@@ -39,6 +44,10 @@ buildPythonPackage rec {
3944 blinker pillow beautifulsoup4 markupsafe lxml
4045 ];
4146
47+ checkInputs = [
48+ nose
49+ ];
50+
4251 postPatch= ''
4352 substituteInPlace pelican/tests/test_pelican.py \
4453 --replace "'git'" "'${git}/bin/git'"