mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 07:31:19 +00:00
chkcrontab: migration to pyproject
This commit is contained in:
@@ -9,13 +9,21 @@ with python3.pkgs;
|
||||
buildPythonApplication (finalAttrs: {
|
||||
pname = "chkcrontab";
|
||||
version = "1.7";
|
||||
format = "setuptools";
|
||||
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 = [ setuptools ];
|
||||
|
||||
meta = {
|
||||
description = "Tool to detect crontab errors";
|
||||
mainProgram = "chkcrontab";
|
||||
|
||||
Reference in New Issue
Block a user