37 buildPythonPackage rec {
42 disabled = pythonOlder "3.8";
44 src = fetchFromGitHub {
47 rev = "refs/tags/${version}";
48 hash = "sha256-nz2OnxJ4mGgnafz4Xp8K/BTyVgXNpNYqteNL1owP8Hk=";
49 # Remove unicode file names which leads to different checksums on HFS+
50 # vs. other filesystems because of unicode normalisation.
52 rm -r $out/pelican/tests/output/custom_locale/posts
57 substituteInPlace pelican/tests/test_pelican.py \
58 --replace "'git'" "'${git}/bin/git'"
78 propagatedBuildInputs = [
90 ] ++ lib.optionals (pythonOlder "3.9") [
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"
113 env.LC_ALL = "en_US.UTF-8";
115 # We only want to patch shebangs in /bin, and not those
116 # of the project scripts that are created by Pelican.
117 # See https://github.com/NixOS/nixpkgs/issues/30116
118 dontPatchShebangs = true;
121 patchShebangs $out/bin
124 pythonImportsCheck = [ "pelican" ];
127 description = "Static site generator that requires no database or server-side logic";
128 homepage = "https://getpelican.com/";
129 license = licenses.agpl3Only;
130 maintainers = with maintainers; [ offline prikhi ];