From a4c24f0bfcce628b663379074b78d8392696e81d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 May 2026 11:21:10 +0200 Subject: [PATCH 1/2] python3Packages.pip-api: modernize --- .../python-modules/pip-api/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pip-api/default.nix b/pkgs/development/python-modules/pip-api/default.nix index c3653d0f5af4..f7c1e91808ec 100644 --- a/pkgs/development/python-modules/pip-api/default.nix +++ b/pkgs/development/python-modules/pip-api/default.nix @@ -9,7 +9,7 @@ virtualenv, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pip-api"; version = "0.0.34"; pyproject = true; @@ -17,13 +17,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "di"; repo = "pip-api"; - tag = version; + tag = "v${finalAttrs.version}"; hash = "sha256-nmCP4hp+BsD80OBjerOu+QTBBExGHvn/v19od4V3ncI="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ pip ]; + dependencies = [ pip ]; nativeCheckInputs = [ pretend @@ -44,9 +44,9 @@ buildPythonPackage rec { meta = { description = "Importable pip API"; - homepage = "https://github.com/di/pip-api"; - changelog = "https://github.com/di/pip-api/blob/${version}/CHANGELOG"; - license = with lib.licenses; [ mit ]; + homepage = "https://github.com/di/pip-api/"; + changelog = "https://github.com/di/pip-api/blob/${finalAttrs.src.tag}/CHANGELOG"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +}) From fe9f23241b90329602499946b45a5e30c2deb6cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 May 2026 11:21:34 +0200 Subject: [PATCH 2/2] python3Packages.pip-api: disable failing tests --- pkgs/development/python-modules/pip-api/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pip-api/default.nix b/pkgs/development/python-modules/pip-api/default.nix index f7c1e91808ec..5d4f315f5a1e 100644 --- a/pkgs/development/python-modules/pip-api/default.nix +++ b/pkgs/development/python-modules/pip-api/default.nix @@ -40,6 +40,8 @@ buildPythonPackage (finalAttrs: { "test_invoke_install" "test_invoke_uninstall" "test_isolation" + # Tests fails on hydra + "test_parse_requirements_editable" ]; meta = {