From 8e0d050906b5a36a05372854cd1f19bf1504c3a4 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:16:21 +0100 Subject: [PATCH 1/9] python3Packages.oslo-config: 10.1.0 -> 10.2.0 https://github.com/openstack/oslo.config/compare/10.1.0...10.2.0 --- pkgs/development/python-modules/oslo-config/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/oslo-config/default.nix b/pkgs/development/python-modules/oslo-config/default.nix index 9fe2ee234fc7..7e911d6fa0f4 100644 --- a/pkgs/development/python-modules/oslo-config/default.nix +++ b/pkgs/development/python-modules/oslo-config/default.nix @@ -15,13 +15,13 @@ buildPythonPackage rec { pname = "oslo-config"; - version = "10.1.0"; + version = "10.2.0"; pyproject = true; src = fetchPypi { pname = "oslo_config"; inherit version; - hash = "sha256-k6aPm9UiQhmLQEuweyuB9kQAgESkiC6xtQQkF7mBmzY="; + hash = "sha256-bSghE/L7LuTUDIvs20rDmRfD9EfDuzVav0fw1hge3/w="; }; postPatch = '' From 9c8ae4c4bcbe7887605abd875208b3555e9d2f6b Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:17:52 +0100 Subject: [PATCH 2/9] python3Packages.oslo-metrics: 0.11.0 - 0.14.0 https://github.com/openstack/oslo.metrics/compare/0.11.0...0.14.0 --- pkgs/development/python-modules/oslo-metrics/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/oslo-metrics/default.nix b/pkgs/development/python-modules/oslo-metrics/default.nix index 9ffca9456e20..bcae5f3b226f 100644 --- a/pkgs/development/python-modules/oslo-metrics/default.nix +++ b/pkgs/development/python-modules/oslo-metrics/default.nix @@ -19,8 +19,8 @@ buildPythonPackage rec { pname = "oslo-metrics"; - version = "0.11.0"; - format = "setuptools"; + version = "0.14.0"; + pyproject = true; src = fetchFromGitea { domain = "opendev.org"; From 162f42698b4ace231117ad7f3e828b700af3c7c1 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:18:46 +0100 Subject: [PATCH 3/9] python3Packages.stevedore: 5.4.1 -> 5.6.0 https://github.com/openstack/stevedore/compare/5.4.1...5.6.0 --- pkgs/development/python-modules/stevedore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/stevedore/default.nix b/pkgs/development/python-modules/stevedore/default.nix index 19b1a74da856..639bffac6623 100644 --- a/pkgs/development/python-modules/stevedore/default.nix +++ b/pkgs/development/python-modules/stevedore/default.nix @@ -9,12 +9,12 @@ buildPythonPackage rec { pname = "stevedore"; - version = "5.4.1"; + version = "5.6.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-MTW1rlD+EoFu8pG6/0IKy3J/zTVhBuPpy/qeWYXNb0s="; + hash = "sha256-8i0VxurUDFu/qcpUqn57SgfVmzauA+0SztGlTPC1GUU="; }; build-system = [ From 2705fd745bdce043a1257d8eaa9f8d8b1c1195d3 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:24:36 +0100 Subject: [PATCH 4/9] python3Packages.oslo-utils: 9.1.0 -> 9.2.0 https://github.com/openstack/oslo.utils/compare/9.1.0...9.2.0 --- .../python-modules/oslo-utils/ctypes.patch | 22 --------------- .../python-modules/oslo-utils/default.nix | 28 +++++++++---------- 2 files changed, 13 insertions(+), 37 deletions(-) delete mode 100644 pkgs/development/python-modules/oslo-utils/ctypes.patch diff --git a/pkgs/development/python-modules/oslo-utils/ctypes.patch b/pkgs/development/python-modules/oslo-utils/ctypes.patch deleted file mode 100644 index bed62535a80f..000000000000 --- a/pkgs/development/python-modules/oslo-utils/ctypes.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/oslo_utils/secretutils.py b/oslo_utils/secretutils.py -index 3183865..83e00e8 100644 ---- a/oslo_utils/secretutils.py -+++ b/oslo_utils/secretutils.py -@@ -46,13 +46,10 @@ def md5(string=b'', usedforsecurity=True): - return hashlib.md5(string, usedforsecurity=usedforsecurity) # nosec - - --if ctypes.util.find_library("crypt"): -- _libcrypt = ctypes.CDLL(ctypes.util.find_library("crypt"), use_errno=True) -- _crypt = _libcrypt.crypt -- _crypt.argtypes = (ctypes.c_char_p, ctypes.c_char_p) -- _crypt.restype = ctypes.c_char_p --else: -- _crypt = None -+_libcrypt = ctypes.CDLL("@crypt@", use_errno=True) -+_crypt = _libcrypt.crypt -+_crypt.argtypes = (ctypes.c_char_p, ctypes.c_char_p) -+_crypt.restype = ctypes.c_char_p - - - def crypt_mksalt(method): diff --git a/pkgs/development/python-modules/oslo-utils/default.nix b/pkgs/development/python-modules/oslo-utils/default.nix index 9da2e71d149e..167fa70622d9 100644 --- a/pkgs/development/python-modules/oslo-utils/default.nix +++ b/pkgs/development/python-modules/oslo-utils/default.nix @@ -11,7 +11,6 @@ debtcollector, iso8601, netaddr, - netifaces, oslo-i18n, packaging, psutil, @@ -29,7 +28,6 @@ oslotest, pyyaml, qemu-utils, - replaceVars, stdenv, stestr, testscenarios, @@ -37,26 +35,27 @@ buildPythonPackage rec { pname = "oslo-utils"; - version = "9.1.0"; + version = "9.2.0"; pyproject = true; src = fetchPypi { pname = "oslo_utils"; inherit version; - hash = "sha256-AcOHXnzKAFtZRlxCn0ZxE7X0sEIRy9U0yawvFSJ207M="; + hash = "sha256-H0IAbea5KRoDBQJfXM24kHEg2I7X68N4ShRyozKASKs="; }; - patches = [ - (replaceVars ./ctypes.patch { - crypt = "${lib.getLib libxcrypt-legacy}/lib/libcrypt${stdenv.hostPlatform.extensions.sharedLibrary}"; - }) - ]; + postPatch = + let + soext = stdenv.hostPlatform.extensions.sharedLibrary; + in + '' + substituteInPlace oslo_utils/secretutils.py \ + --replace-fail "ctypes.util.find_library(\"crypt\")" '"${lib.getLib libxcrypt-legacy}/lib/libcrypt${soext}"' - postPatch = '' - # only a small portion of the listed packages are actually needed for running the tests - # so instead of removing them one by one remove everything - rm test-requirements.txt - ''; + # only a small portion of the listed packages are actually needed for running the tests + # so instead of removing them one by one remove everything + rm test-requirements.txt + ''; build-system = [ pbr @@ -67,7 +66,6 @@ buildPythonPackage rec { debtcollector iso8601 netaddr - netifaces oslo-i18n packaging psutil From 1436a81f4fe68a4ce933155016cc07266c69aa19 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:35:48 +0100 Subject: [PATCH 5/9] python3Packages.pyeclib: 1.6.4 -> 1.7.0 Diff: https://github.com/openstack/pyeclib/compare/1.6.4...1.7.0 --- .../python-modules/pyeclib/default.nix | 28 +++---------------- 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/pyeclib/default.nix b/pkgs/development/python-modules/pyeclib/default.nix index d6ac936cfcb9..d323075207e0 100644 --- a/pkgs/development/python-modules/pyeclib/default.nix +++ b/pkgs/development/python-modules/pyeclib/default.nix @@ -1,53 +1,32 @@ { lib, - stdenv, buildPythonPackage, - distutils, fetchFromGitHub, liberasurecode, pytestCheckHook, setuptools, - six, }: buildPythonPackage rec { pname = "pyeclib"; - version = "1.6.4"; + version = "1.7.0"; pyproject = true; src = fetchFromGitHub { owner = "openstack"; repo = "pyeclib"; tag = version; - hash = "sha256-oRitXlQunfqLSKMaSW3E1BnL0otA4UPj/y6bbiN0kPM="; + hash = "sha256-wYzZUtr80KgVTznD0ISy7qhGngm4Xmt8Mauu9lP+2T4="; }; - postPatch = '' - # python's platform.platform() doesn't return "Darwin" (anymore?) - substituteInPlace setup.py \ - --replace-fail '"Darwin"' '"macOS"' - ''; - build-system = [ - distutils setuptools ]; - preBuild = - let - ldLibraryPathEnvName = - if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"; - in - '' - # required for the custom _find_library function in setup.py - export ${ldLibraryPathEnvName}="${lib.makeLibraryPath [ liberasurecode ]}" - ''; - - dependencies = [ liberasurecode ]; + buildInputs = [ liberasurecode ]; nativeCheckInputs = [ pytestCheckHook - six ]; disabledTests = [ @@ -61,6 +40,7 @@ buildPythonPackage rec { description = "This library provides a simple Python interface for implementing erasure codes"; homepage = "https://github.com/openstack/pyeclib"; license = lib.licenses.bsd2; + mainProgram = "pyeclib-backend"; teams = [ lib.teams.openstack ]; }; } From 4722a965af4d847a4c742ba614b51a02c3fad266 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 14:52:17 +0100 Subject: [PATCH 6/9] python3Packages.cliff: 4.10.0 -> 4.13.1 https://github.com/openstack/cliff/compare/4.10.0...4.13.1 --- pkgs/development/python-modules/cliff/default.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/cliff/default.nix b/pkgs/development/python-modules/cliff/default.nix index 60dc896af747..2f97f988ad51 100644 --- a/pkgs/development/python-modules/cliff/default.nix +++ b/pkgs/development/python-modules/cliff/default.nix @@ -4,13 +4,10 @@ fetchPypi, autopage, cmd2, - importlib-metadata, openstackdocstheme, pbr, prettytable, - pyparsing, pyyaml, - setuptools, stevedore, sphinxHook, callPackage, @@ -18,17 +15,17 @@ buildPythonPackage rec { pname = "cliff"; - version = "4.10.0"; + version = "4.13.1"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-jB9baCdBoDsMRgfILor0HU6cKFkCRkZWL4bN6ylZqG0="; + hash = "sha256-t5zAssGfbG54yCvZI+BnhQNdd8sNKhpIMinwooNvDKc="; }; build-system = [ openstackdocstheme - setuptools + pbr sphinxHook ]; @@ -37,10 +34,7 @@ buildPythonPackage rec { dependencies = [ autopage cmd2 - importlib-metadata - pbr prettytable - pyparsing pyyaml stevedore ]; From f01210db2e8346d740fdca49ec6ffa96fb783f0b Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 15:15:10 +0100 Subject: [PATCH 7/9] python3Packages.oslo-concurrency: disable broken test with Python 3.14+ See proposed change upstream: https://review.opendev.org/c/openstack/oslo.concurrency/+/971765 --- .../oslo-concurrency/default.nix | 46 +++++++++++++------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/oslo-concurrency/default.nix b/pkgs/development/python-modules/oslo-concurrency/default.nix index e9244c7bc843..d36546dde389 100644 --- a/pkgs/development/python-modules/oslo-concurrency/default.nix +++ b/pkgs/development/python-modules/oslo-concurrency/default.nix @@ -15,9 +15,11 @@ oslo-utils, oslotest, pbr, + pythonAtLeast, setuptools, stdenv, stestr, + writeText, }: buildPythonPackage rec { @@ -64,22 +66,36 @@ buildPythonPackage rec { stestr ]; - checkPhase = '' - echo "nameserver 127.0.0.1" > resolv.conf - export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) + checkPhase = + let + disabledTests = [ + "oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn" + "oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn_n" + "oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn" + "oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn_n" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "oslo_concurrency.tests.unit.test_lockutils.FileBasedLockingTestCase.test_interprocess_nonblocking_external_lock" + "oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally" + "oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally_lock_dir_not_exist" + "oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_stack_size" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # Disable test incompatible with Python 3.14+ + # See proposed change upstream: https://review.opendev.org/c/openstack/oslo.concurrency/+/971765 + "oslo_concurrency.tests.unit.test_lockutils" + ]; + in + '' + runHook preCheck - stestr run -e <(echo " - oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn - oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn_n - oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn - oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn_n - ${lib.optionalString stdenv.hostPlatform.isDarwin '' - oslo_concurrency.tests.unit.test_lockutils.FileBasedLockingTestCase.test_interprocess_nonblocking_external_lock - oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally - oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally_lock_dir_not_exist - oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_stack_size - ''}") - ''; + echo "nameserver 127.0.0.1" > resolv.conf + export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) + + stestr run -e <(echo "${lib.concatStringsSep "\n" disabledTests}") + + runHook postCheck + ''; pythonImportsCheck = [ "oslo_concurrency" ]; From 06a4df7b600e6e8659ec499cfb5ddc368975d1b0 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 25 Jan 2026 15:37:04 +0100 Subject: [PATCH 8/9] python3Packages.osc-lib: disable broken test with Python 3.14+ See upstream issue: https://bugs.launchpad.net/python-openstackclient/+bug/2138684 --- .../python-modules/osc-lib/default.nix | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/osc-lib/default.nix b/pkgs/development/python-modules/osc-lib/default.nix index 73ed4068d829..a0f03b93ba4e 100644 --- a/pkgs/development/python-modules/osc-lib/default.nix +++ b/pkgs/development/python-modules/osc-lib/default.nix @@ -8,12 +8,14 @@ oslo-i18n, oslo-utils, pbr, + pythonAtLeast, requests, requests-mock, setuptools, stdenv, stestr, stevedore, + writeText, }: buildPythonPackage rec { @@ -56,15 +58,26 @@ buildPythonPackage rec { stestr ]; - checkPhase = '' - stestr run -e <(echo " - ${lib.optionalString stdenv.hostPlatform.isDarwin '' - osc_lib.tests.test_shell.TestShellCli.test_shell_args_cloud_public - osc_lib.tests.test_shell.TestShellCli.test_shell_args_precedence - osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_1 - osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_2 - ''}") - ''; + checkPhase = + let + disabledTests = + lib.optionals stdenv.hostPlatform.isDarwin [ + "osc_lib.tests.test_shell.TestShellCli.test_shell_args_cloud_public" + "osc_lib.tests.test_shell.TestShellCli.test_shell_args_precedence" + "osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_1" + "osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_2" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # Disable test incompatible with Python 3.14+ + # See upstream issue: https://bugs.launchpad.net/python-openstackclient/+bug/2138684 + "osc_lib.tests.utils.test_tags.TestTagHelps" + ]; + in + '' + runHook preCheck + stestr run -e <(echo "${lib.concatStringsSep "\n" disabledTests}") + runHook postCheck + ''; pythonImportsCheck = [ "osc_lib" ]; From e83b1509d1442245ed17ea88717e0e1f95a876fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 26 Jan 2026 17:01:54 +0100 Subject: [PATCH 9/9] papis: ignore failing test --- pkgs/development/python-modules/papis/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix index 111bf954bef4..2a6a1f2ee37a 100644 --- a/pkgs/development/python-modules/papis/default.nix +++ b/pkgs/development/python-modules/papis/default.nix @@ -122,6 +122,8 @@ buildPythonPackage rec { disabledTests = [ # Require network access "test_yaml_unicode_dump" + # FileNotFoundError: Command not found: 'init' + "test_git_cli" ]; patches = [