nixpkgs/pkgs/applications/misc/sigal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2022-04-26 12:44:18 +03:00
, python3
, ffmpeg
}:
2018-01-12 13:29:13 +03:00
2022-04-26 12:44:18 +03:00
python3.pkgs.buildPythonApplication rec {
pname = "sigal";
version = "2.3";
format = "setuptools";
2018-01-12 13:29:13 +03:00
2022-04-26 12:44:18 +03:00
src = python3.pkgs.fetchPypi {
inherit version pname;
2022-04-26 12:44:18 +03:00
hash = "sha256-4Zsb/OBtU/jV0gThEYe8bcrb+6hW+hnzQS19q1H409Q=";
2018-01-12 13:29:13 +03:00
};
patches = [ ./copytree-permissions.patch ];
2022-04-26 12:44:18 +03:00
propagatedBuildInputs = with python3.pkgs; [
2021-04-25 18:03:06 +03:00
# install_requires
2018-01-12 13:29:13 +03:00
jinja2
markdown
pillow
pilkit
click
blinker
natsort
2021-04-25 18:03:06 +03:00
# extras_require
brotli
feedgenerator
zopfli
cryptography
2022-06-27 22:17:01 +03:00
setuptools # needs pkg_resources
2018-01-12 13:29:13 +03:00
];
nativeCheckInputs = [
2021-04-25 18:03:06 +03:00
ffmpeg
2022-04-26 12:44:18 +03:00
] ++ (with python3.pkgs; [
2021-04-25 18:03:06 +03:00
pytestCheckHook
]);
2018-04-08 17:33:28 +03:00
disabledTests = lib.optionals stdenv.isDarwin [
"test_nonmedia_files"
];
2022-04-26 12:44:18 +03:00
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
];
2018-01-12 13:29:13 +03:00
meta = with lib; {
description = "Yet another simple static gallery generator";
2022-04-26 12:44:18 +03:00
homepage = "http://sigal.saimon.org/";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar matthiasbeyer ];
2018-01-12 13:29:13 +03:00
};
}