2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-04-27 09:35:20 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
, ffmpeg
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "sigal";
|
|
|
|
version = "2.3";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit version pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-4Zsb/OBtU/jV0gThEYe8bcrb+6hW+hnzQS19q1H409Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
patches = [ ./copytree-permissions.patch ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-04-26 19:14:03 +00:00
|
|
|
# install_requires
|
2020-04-24 23:36:52 +00:00
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
pillow
|
|
|
|
pilkit
|
|
|
|
click
|
|
|
|
blinker
|
2020-10-07 09:15:18 +00:00
|
|
|
natsort
|
2021-04-26 19:14:03 +00:00
|
|
|
# extras_require
|
|
|
|
brotli
|
|
|
|
feedgenerator
|
|
|
|
zopfli
|
|
|
|
cryptography
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
setuptools # needs pkg_resources
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
ffmpeg
|
2022-04-27 09:35:20 +00:00
|
|
|
] ++ (with python3.pkgs; [
|
2021-04-26 19:14:03 +00:00
|
|
|
pytestCheckHook
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
"test_nonmedia_files"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet another simple static gallery generator";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "http://sigal.saimon.org/";
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ domenkozar matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|