depot/third_party/nixpkgs/pkgs/applications/misc/sigal/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

58 lines
1 KiB
Nix

{ stdenv
, lib
, python3
, fetchPypi
, ffmpeg
}:
python3.pkgs.buildPythonApplication rec {
pname = "sigal";
version = "2.4";
pyproject = true;
src = fetchPypi {
inherit version pname;
hash = "sha256-pDTaqtqfuk7tACkyaKClTJotuVcTKli5yx1wbEM93TM=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools-scm
];
propagatedBuildInputs = with python3.pkgs; [
# install_requires
jinja2
markdown
pillow
pilkit
click
blinker
natsort
# extras_require
brotli
feedgenerator
zopfli
cryptography
];
nativeCheckInputs = [
ffmpeg
] ++ (with python3.pkgs; [
pytestCheckHook
]);
disabledTests = lib.optionals stdenv.isDarwin [
"test_nonmedia_files"
];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
];
meta = with lib; {
description = "Yet another simple static gallery generator";
homepage = "http://sigal.saimon.org/";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar matthiasbeyer ];
};
}