From 38a640953eafa80cd188cd9e23c3596f189b6ad3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Sep 2026 22:25:41 +0200 Subject: [PATCH 1/2] python3Packages.jenkinsapi: 0.3.17 -> 0.3.23 Changelog: https://github.com/pycontribs/jenkinsapi/releases/tag/0.3.23 --- .../python-modules/jenkinsapi/default.nix | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/jenkinsapi/default.nix b/pkgs/development/python-modules/jenkinsapi/default.nix index 2fd4d7167762..a76f2192498a 100644 --- a/pkgs/development/python-modules/jenkinsapi/default.nix +++ b/pkgs/development/python-modules/jenkinsapi/default.nix @@ -2,55 +2,55 @@ lib, buildPythonPackage, fetchFromGitHub, + docker, hatchling, mock, + pyprojectVersionPatchHook, pytest-mock, + pytest-xdist, pytestCheckHook, pytz, requests, - six, }: buildPythonPackage rec { pname = "jenkinsapi"; - version = "0.3.17"; + version = "0.3.23"; pyproject = true; src = fetchFromGitHub { owner = "pycontribs"; repo = "jenkinsapi"; tag = version; - hash = "sha256-1dTcT84cDpP9V4tVrgW2MTYx4jQj0/tZiAuakC+orUQ="; + hash = "sha256-NtILbbXu4dtYda28WaFiGkICf0bOmVMKOOnnrHptxsg="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; + + nativeBuildInputs = [ pyprojectVersionPatchHook ]; dependencies = [ pytz requests - six ]; nativeCheckInputs = [ + docker mock pytest-mock + pytest-xdist pytestCheckHook ]; # don't run tests that try to spin up jenkins disabledTests = [ "systests" ]; - pythonImportsCheck = [ - "jenkinsapi" - "jenkinsapi.utils" - "jenkinsapi.utils.jenkins_launcher" - ]; + pythonImportsCheck = [ "jenkinsapi" ]; meta = { description = "Python API for accessing resources on a Jenkins continuous-integration server"; homepage = "https://github.com/salimfadhley/jenkinsapi"; + changelog = "https://github.com/pycontribs/jenkinsapi/releases/tag/${src.tag}"; maintainers = with lib.maintainers; [ de11n despsyched From 16754faf479ebd063f79dc31af5e26c54ff7a153 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 Sep 2026 22:27:27 +0200 Subject: [PATCH 2/2] python3Packages.jenkinsapi: migrate to finalAttrs --- pkgs/development/python-modules/jenkinsapi/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/jenkinsapi/default.nix b/pkgs/development/python-modules/jenkinsapi/default.nix index a76f2192498a..296ea97310e8 100644 --- a/pkgs/development/python-modules/jenkinsapi/default.nix +++ b/pkgs/development/python-modules/jenkinsapi/default.nix @@ -13,7 +13,7 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "jenkinsapi"; version = "0.3.23"; pyproject = true; @@ -21,7 +21,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pycontribs"; repo = "jenkinsapi"; - tag = version; + tag = finalAttrs.version; hash = "sha256-NtILbbXu4dtYda28WaFiGkICf0bOmVMKOOnnrHptxsg="; }; @@ -49,8 +49,8 @@ buildPythonPackage rec { meta = { description = "Python API for accessing resources on a Jenkins continuous-integration server"; - homepage = "https://github.com/salimfadhley/jenkinsapi"; - changelog = "https://github.com/pycontribs/jenkinsapi/releases/tag/${src.tag}"; + homepage = "https://github.com/pycontribs/jenkinsapi"; + changelog = "https://github.com/pycontribs/jenkinsapi/releases/tag/${finalAttrs.version}"; maintainers = with lib.maintainers; [ de11n despsyched @@ -58,4 +58,4 @@ buildPythonPackage rec { ]; license = lib.licenses.mit; }; -} +})