Skip to content

Commit

Permalink
Merge pull request #65116 from r-ryantm/auto-update/python3.7-pelican
Browse files Browse the repository at this point in the history
python37Packages.pelican: 4.0.1 -> 4.1.0
  • Loading branch information
marsam committed Jul 20, 2019
2 parents 8965de1 + 4fca2ef commit 0ee5701
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pkgs/development/python-modules/pelican/default.nix
Expand Up @@ -6,30 +6,35 @@

buildPythonPackage rec {
pname = "pelican";
version = "4.0.1";
version = "4.1.0";

src = fetchFromGitHub {
owner = "getpelican";
repo = "pelican";
rev = version;
sha256 = "09fcwnnfln0cl5v0qpxzrllj27znrg6dbhaksxrl0192c3mbyjvl";
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 = [
glibcLocales
# Note: Pelican has to adapt to a changed CLI of pandoc before enabling this
# again. Compare https://github.com/getpelican/pelican/pull/2252.
# Version 4.0.1 is incompatible with our current pandoc version.
# Version 4.1.0 is incompatible with our current pandoc version.
# pandoc
git
mock
nose
markdown
typogrify
];
Expand All @@ -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'"
Expand Down

0 comments on commit 0ee5701

Please sign in to comment.