Merge pull request #65116 from r-ryantm/auto-update/python3.7-pelican
python37Packages.pelican: 4.0.1 -> 4.1.0
This commit is contained in:
commit
0ee5701cd7
1 changed files with 14 additions and 5 deletions
|
@ -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
|
||||
];
|
||||
|
@ -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'"
|
||||
|
|
Loading…
Reference in a new issue