38 buildPythonPackage rec {
43 disabled = pythonOlder "3.8";
45 src = fetchFromGitHub {
48 rev = "refs/tags/${version}";
49 hash = "sha256-RWzOMp3H0QbZyGsXd8cakeRqZhVH7d6ftxZHBA4cPSA=";
50 # Remove unicode file names which leads to different checksums on HFS+
51 # vs. other filesystems because of unicode normalisation.
53 rm -r $out/pelican/tests/output/custom_locale/posts
58 substituteInPlace pelican/tests/test_pelican.py \
59 --replace "'git'" "'${git}/bin/git'"
62 build-system = [ pdm-backend ];
64 pythonRelaxDeps = [ "unidecode" ];
88 optional-dependencies = {
89 markdown = [ markdown ];
102 # DeprecationWarning: 'jinja2.Markup' is deprecated and...
103 "-W ignore::DeprecationWarning"
108 "test_basic_generation_works"
109 "test_custom_generation_works"
110 "test_custom_locale_generation_works"
111 "test_deprecated_attribute"
113 "test_wp_custpost_true_dirpage_false"
114 "test_can_toggle_raw_html_code_parsing"
115 "test_dirpage_directive_for_page_kind"
118 env.LC_ALL = "en_US.UTF-8";
120 # We only want to patch shebangs in /bin, and not those
121 # of the project scripts that are created by Pelican.
122 # See https://github.com/NixOS/nixpkgs/issues/30116
123 dontPatchShebangs = true;
126 patchShebangs $out/bin
129 pythonImportsCheck = [ "pelican" ];
132 description = "Static site generator that requires no database or server-side logic";
133 homepage = "https://getpelican.com/";
134 changelog = "https://github.com/getpelican/pelican/blob/${version}/docs/changelog.rst";
135 license = licenses.agpl3Only;
136 maintainers = with maintainers; [