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
@ -6,30 +6,35 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pelican";
|
pname = "pelican";
|
||||||
version = "4.0.1";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "getpelican";
|
owner = "getpelican";
|
||||||
repo = "pelican";
|
repo = "pelican";
|
||||||
rev = version;
|
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;
|
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 = [
|
||||||
glibcLocales
|
glibcLocales
|
||||||
# Note: Pelican has to adapt to a changed CLI of pandoc before enabling this
|
# Note: Pelican has to adapt to a changed CLI of pandoc before enabling this
|
||||||
# again. Compare https://github.com/getpelican/pelican/pull/2252.
|
# 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
|
# 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…
x
Reference in New Issue
Block a user