nixpkgs/pkgs/applications/misc/sigal/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

60 lines
1.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";
mainProgram = "sigal";
homepage = "http://sigal.saimon.org/";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar matthiasbeyer ];
};
}