mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
33 lines
729 B
Nix
33 lines
729 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "chkcrontab";
|
|
version = "1.7";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
sha256 = "0gmxavjkjkvjysgf9cf5fcpk589gb75n1mn20iki82wifi1pk1jn";
|
|
};
|
|
|
|
postPatch = ''
|
|
# cannot install the manpage as it is not present in the wheel
|
|
substituteInPlace setup.py \
|
|
--replace-fail "'doc/chkcrontab.1'" ""
|
|
'';
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
meta = {
|
|
description = "Tool to detect crontab errors";
|
|
mainProgram = "chkcrontab";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
homepage = "https://github.com/lyda/chkcrontab";
|
|
};
|
|
})
|