python3Packages.pelican: 4.9.1 -> 4.10.1

This commit is contained in:
Martin Weinelt 2024-09-29 17:05:54 +02:00
parent 120b7797f6
commit 1efc1339a1

View File

@ -29,6 +29,8 @@
watchfiles, watchfiles,
# tests # tests
beautifulsoup4,
lxml,
mock, mock,
pytestCheckHook, pytestCheckHook,
pytest-xdist, pytest-xdist,
@ -36,7 +38,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pelican"; pname = "pelican";
version = "4.9.1"; version = "4.10.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -45,7 +47,7 @@ buildPythonPackage rec {
owner = "getpelican"; owner = "getpelican";
repo = "pelican"; repo = "pelican";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-nz2OnxJ4mGgnafz4Xp8K/BTyVgXNpNYqteNL1owP8Hk="; hash = "sha256-RWzOMp3H0QbZyGsXd8cakeRqZhVH7d6ftxZHBA4cPSA=";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
postFetch = '' postFetch = ''
@ -58,9 +60,7 @@ buildPythonPackage rec {
--replace "'git'" "'${git}/bin/git'" --replace "'git'" "'${git}/bin/git'"
''; '';
nativeBuildInputs = [ build-system = [ pdm-backend ];
pdm-backend
];
pythonRelaxDeps = [ "unidecode" ]; pythonRelaxDeps = [ "unidecode" ];
@ -72,7 +72,7 @@ buildPythonPackage rec {
typogrify typogrify
]; ];
propagatedBuildInputs = [ dependencies = [
blinker blinker
docutils docutils
feedgenerator feedgenerator
@ -84,13 +84,19 @@ buildPythonPackage rec {
tzdata tzdata
unidecode unidecode
watchfiles watchfiles
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; ];
optional-dependencies = {
markdown = [ markdown ];
};
nativeCheckInputs = [ nativeCheckInputs = [
beautifulsoup4
lxml
mock mock
pandoc
pytest-xdist pytest-xdist
pytestCheckHook pytestCheckHook
pandoc
]; ];
pytestFlagsArray = [ pytestFlagsArray = [
@ -104,6 +110,10 @@ buildPythonPackage rec {
"test_custom_generation_works" "test_custom_generation_works"
"test_custom_locale_generation_works" "test_custom_locale_generation_works"
"test_deprecated_attribute" "test_deprecated_attribute"
# AttributeError
"test_wp_custpost_true_dirpage_false"
"test_can_toggle_raw_html_code_parsing"
"test_dirpage_directive_for_page_kind"
]; ];
env.LC_ALL = "en_US.UTF-8"; env.LC_ALL = "en_US.UTF-8";
@ -122,6 +132,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Static site generator that requires no database or server-side logic"; description = "Static site generator that requires no database or server-side logic";
homepage = "https://getpelican.com/"; homepage = "https://getpelican.com/";
changelog = "https://github.com/getpelican/pelican/blob/${version}/docs/changelog.rst";
license = licenses.agpl3Only; license = licenses.agpl3Only;
maintainers = with maintainers; [ maintainers = with maintainers; [
offline offline