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";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.4";
|
|
|
|
pyproject = true;
|
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;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-pDTaqtqfuk7tACkyaKClTJotuVcTKli5yx1wbEM93TM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
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
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sigal";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|