From 7cb3d249b3cee3b2b8d15c700c2d686442fbbaa4 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 2 Nov 2024 19:08:25 +0900 Subject: [PATCH 1/2] python312Packages.repocheck: 2015-08-05 -> 1.0.0 Diff: https://github.com/kynikos/repocheck/compare/ee48d0e88d3f5814d24a8d1f22d5d83732824688...v1.0.0 --- pkgs/development/python-modules/repocheck/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/repocheck/default.nix b/pkgs/development/python-modules/repocheck/default.nix index d5df17ae89fd..36cb829f3862 100644 --- a/pkgs/development/python-modules/repocheck/default.nix +++ b/pkgs/development/python-modules/repocheck/default.nix @@ -6,7 +6,7 @@ buildPythonPackage rec { pname = "repocheck"; - version = "2015-08-05"; + version = "1.0.0"; format = "setuptools"; src = fetchFromGitHub { From be9227afa70018684fd7f7ba88341c676b76b038 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 3 Nov 2024 13:09:39 +0900 Subject: [PATCH 2/2] repocheck: move from python3Packages and refactor --- .../re/repocheck/package.nix} | 19 +++++++++++++------ pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 14 insertions(+), 8 deletions(-) rename pkgs/{development/python-modules/repocheck/default.nix => by-name/re/repocheck/package.nix} (54%) diff --git a/pkgs/development/python-modules/repocheck/default.nix b/pkgs/by-name/re/repocheck/package.nix similarity index 54% rename from pkgs/development/python-modules/repocheck/default.nix rename to pkgs/by-name/re/repocheck/package.nix index 36cb829f3862..846d7770dee5 100644 --- a/pkgs/development/python-modules/repocheck/default.nix +++ b/pkgs/by-name/re/repocheck/package.nix @@ -1,21 +1,28 @@ { lib, - buildPythonPackage, fetchFromGitHub, + python3Packages, }: -buildPythonPackage rec { +python3Packages.buildPythonApplication rec { pname = "repocheck"; version = "1.0.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { - sha256 = "1jc4v5zy7z7xlfmbfzvyzkyz893f5x2k6kvb3ni3rn2df7jqhc81"; - rev = "ee48d0e88d3f5814d24a8d1f22d5d83732824688"; - repo = "repocheck"; owner = "kynikos"; + repo = "repocheck"; + rev = "refs/tags/v${version}"; + hash = "sha256-pCz+oAfDFyDeuXumfNzLTXnftM9+IG+lZzWSKtbZ9dg="; }; + build-system = [ python3Packages.setuptools ]; + + pythonImportsCheck = [ "repocheck" ]; + + # no tests + doCheck = false; + meta = with lib; { inherit (src.meta) homepage; description = "Check the status of code repositories under a root directory"; diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 6255cdb9559e..fbe15f318a1b 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -573,6 +573,7 @@ mapAliases ({ recursivePthLoader = recursive-pth-loader; # added 2024-01-07 rednose = throw "rednose is no longer maintained (since February 2018)"; # added 2023-08-06 repeated_test = repeated-test; # added 2022-11-15 + repocheck = throw "repocheck has been promoted to a top-level attribute name: `pkgs.repocheck`"; # Added 2024-11-03 reportengine = throw "reportengine has been removed, since it is unmaintained and broken"; # added 2024-08-21 repoze_lru = repoze-lru; # added 2023-11-11 repoze_sphinx_autointerface = repoze-sphinx-autointerface; # added 2023-11-11 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e15b48dcb152..7c214cfe123b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13641,8 +13641,6 @@ self: super: with self; { replicate = callPackage ../development/python-modules/replicate { }; - repocheck = callPackage ../development/python-modules/repocheck { }; - reportlab = callPackage ../development/python-modules/reportlab { }; reportlab-qrcode = callPackage ../development/python-modules/reportlab-qrcode { };