From f67c9cd6a6e5311e0b4aef663c38376eb89bc4cd Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 13 May 2026 01:09:42 +0200 Subject: [PATCH 1/2] chkcrontab: migration to pyproject --- pkgs/by-name/ch/chkcrontab/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ch/chkcrontab/package.nix b/pkgs/by-name/ch/chkcrontab/package.nix index 2205eefcc159..55445ae320a3 100644 --- a/pkgs/by-name/ch/chkcrontab/package.nix +++ b/pkgs/by-name/ch/chkcrontab/package.nix @@ -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"; From b6595a154173206ea04ecc8211b0eb1a45b8eeb5 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 13 May 2026 01:10:08 +0200 Subject: [PATCH 2/2] chkcrontab: inline with usage --- pkgs/by-name/ch/chkcrontab/package.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ch/chkcrontab/package.nix b/pkgs/by-name/ch/chkcrontab/package.nix index 55445ae320a3..04b8a2c8bc45 100644 --- a/pkgs/by-name/ch/chkcrontab/package.nix +++ b/pkgs/by-name/ch/chkcrontab/package.nix @@ -1,12 +1,10 @@ { lib, - python3, + python3Packages, fetchPypi, }: -with python3.pkgs; - -buildPythonApplication (finalAttrs: { +python3Packages.buildPythonApplication (finalAttrs: { pname = "chkcrontab"; version = "1.7"; pyproject = true; @@ -22,7 +20,7 @@ buildPythonApplication (finalAttrs: { --replace-fail "'doc/chkcrontab.1'" "" ''; - build-system = [ setuptools ]; + build-system = [ python3Packages.setuptools ]; meta = { description = "Tool to detect crontab errors";