git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #65116 from r-ryantm/auto-update/python3.7-pelican

python37Packages.pelican: 4.0.1 -> 4.1.0

commit0ee5701cd718f68cb6414e96e4c3609e2cf122cf authorMario Rodas <marsam@users.noreply.github.com> dateFri 19 Jul 2019, 22:37 (7 years ago) parent8965de14fca2ef
1 file changed+14−5
pkgs/development/python-modules/pelican/default.nix+14−5
pkgs/development/python-modules/pelican/default.nix+14−5
@@ -6,30 +6,35 @@
66
77buildPythonPackage rec {
88 pname = "pelican";
9− version = "4.0.1";
9+ version = "4.1.0";
1010
1111 src = fetchFromGitHub {
1212 owner = "getpelican";
1313 repo = "pelican";
1414 rev = version;
15− sha256 = "09fcwnnfln0cl5v0qpxzrllj27znrg6dbhaksxrl0192c3mbyjvl";
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 = [
2531 glibcLocales
2632 # Note: Pelican has to adapt to a changed CLI of pandoc before enabling this
2733 # again. Compare https://github.com/getpelican/pelican/pull/2252.
28− # Version 4.0.1 is incompatible with our current pandoc version.
34+ # Version 4.1.0 is incompatible with our current pandoc version.
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'"