From 1b7add75354d4a7f7e47657e8f3e62a180a12b1e Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Sun, 2 Nov 2025 16:04:14 -0500 Subject: [PATCH 1/2] python313Packages.paramz: remove at 0.9.6 Package is not compatible with Numpy 2.x. --- .../python-modules/paramz/default.nix | 73 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 75 deletions(-) delete mode 100644 pkgs/development/python-modules/paramz/default.nix diff --git a/pkgs/development/python-modules/paramz/default.nix b/pkgs/development/python-modules/paramz/default.nix deleted file mode 100644 index 7f2bd1a38fad..000000000000 --- a/pkgs/development/python-modules/paramz/default.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ - lib, - buildPythonPackage, - decorator, - fetchFromGitHub, - numpy, - pytestCheckHook, - pythonOlder, - scipy, - setuptools, - six, -}: - -buildPythonPackage rec { - pname = "paramz"; - version = "0.9.6"; - pyproject = true; - - disabled = pythonOlder "3.7"; - - src = fetchFromGitHub { - owner = "sods"; - repo = "paramz"; - tag = "v${version}"; - hash = "sha256-SWmx70G5mm3eUmH2UIEmg5C7u9VDHiFw5aYCIr8UjPs="; - }; - - build-system = [ setuptools ]; - - dependencies = [ - decorator - numpy - scipy - six - ]; - - nativeCheckInputs = [ pytestCheckHook ]; - - preCheck = '' - substituteInPlace paramz/tests/parameterized_tests.py \ - --replace-fail "assertRaisesRegexp" "assertRaisesRegex" - ''; - - enabledTestPaths = [ - "paramz/tests/array_core_tests.py" - "paramz/tests/cacher_tests.py" - "paramz/tests/examples_tests.py" - "paramz/tests/index_operations_tests.py" - "paramz/tests/init_tests.py" - "paramz/tests/lists_and_dicts_tests.py" - "paramz/tests/model_tests.py" - "paramz/tests/observable_tests.py" - "paramz/tests/parameterized_tests.py" - "paramz/tests/pickle_tests.py" - "paramz/tests/verbose_optimize_tests.py" - ]; - - disabledTests = [ - # TypeError: arrays to stack must be passed as a "sequence" type such as list... - "test_raveled_index" - "test_regular_expression_misc" - ]; - - pythonImportsCheck = [ "paramz" ]; - - meta = with lib; { - description = "Parameterization framework for parameterized model creation and handling"; - homepage = "https://github.com/sods/paramz"; - changelog = "https://github.com/sods/paramz/releases/tag/v${version}"; - license = licenses.bsd3; - maintainers = with maintainers; [ bcdarwin ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 8d1816aa5418..60a24283044d 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -285,6 +285,7 @@ mapAliases { orm = throw "orm has been removed as it is unmaintained"; # added 2025-08-27 paho-mqtt_2 = throw "'paho-mqtt_2' has been renamed to/replaced by 'paho-mqtt'"; # Converted to throw 2025-10-29 pam = throw "'pam' has been renamed to/replaced by 'python-pam'"; # Converted to throw 2025-10-29 + paramz = throw "'paramz' has been removed as it is incompatible with Numpy 2"; # added 2025-11-10 PasteDeploy = throw "'PasteDeploy' has been renamed to/replaced by 'pastedeploy'"; # Converted to throw 2025-10-29 pathpy = throw "'pathpy' has been renamed to/replaced by 'path'"; # Converted to throw 2025-10-29 pcbnew-transition = throw "'pcbnew-transition' has been renamed to/replaced by 'pcbnewtransition'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bde77dda5bc1..34ed3f19e912 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11553,8 +11553,6 @@ self: super: with self; { paramiko = callPackage ../development/python-modules/paramiko { }; - paramz = callPackage ../development/python-modules/paramz { }; - paranoid-crypto = callPackage ../development/python-modules/paranoid-crypto { }; parfive = callPackage ../development/python-modules/parfive { }; From 7338e96ef0c5488c733ad3512672b09acd88b516 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 10 Nov 2025 18:13:15 -0500 Subject: [PATCH 2/2] python313Packages.gpy: remove at 1.13.2 Package depends on python313Packages.paramz, which was removed due to Numpy 2.x incompatibility. --- .../python-modules/gpy/default.nix | 68 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 pkgs/development/python-modules/gpy/default.nix diff --git a/pkgs/development/python-modules/gpy/default.nix b/pkgs/development/python-modules/gpy/default.nix deleted file mode 100644 index b08291c3c878..000000000000 --- a/pkgs/development/python-modules/gpy/default.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ - lib, - stdenv, - buildPythonPackage, - fetchFromGitHub, - pythonOlder, - pytestCheckHook, - setuptools, - numpy, - scipy, - six, - paramz, - matplotlib, - cython, -}: - -buildPythonPackage rec { - pname = "gpy"; - version = "1.13.2"; - pyproject = true; - - disabled = pythonOlder "3.9"; - - src = fetchFromGitHub { - owner = "SheffieldML"; - repo = "GPy"; - tag = "v${version}"; - hash = "sha256-kggXePDKJcgw8qwLIBTxbwhiLw2H4dkx7082FguKP0Y="; - }; - - pythonRelaxDeps = [ - "paramz" - "scipy" - ]; - - nativeBuildInputs = [ setuptools ]; - buildInputs = [ cython ]; - propagatedBuildInputs = [ - numpy - scipy - six - paramz - matplotlib - ]; - nativeCheckInputs = [ pytestCheckHook ]; - - # Rebuild cython-generated .c files to ensure compatibility - preBuild = '' - for fn in $(find . -name '*.pyx'); do - echo $fn | sed 's/\.\.pyx$/\.c/' | xargs ${cython}/bin/cython -3 - done - ''; - - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Rounding difference break comparison - "TestGradientMultiOutputGPModel" - ]; - - pythonImportsCheck = [ "GPy" ]; - - meta = with lib; { - description = "Gaussian process framework in Python"; - homepage = "https://sheffieldml.github.io/GPy"; - changelog = "https://github.com/SheffieldML/GPy/releases/tag/v${version}"; - license = licenses.bsd3; - maintainers = with maintainers; [ bcdarwin ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 60a24283044d..1ef59ccb73bc 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -185,6 +185,7 @@ mapAliases { googleapis_common_protos = throw "'googleapis_common_protos' has been renamed to/replaced by 'googleapis-common-protos'"; # Converted to throw 2025-10-29 gpapi = throw "'gpapi' has been superseded by google-api-python-client"; # Added 2025-11-09 gplaycli = throw "'gplaycli' has been removed as it was broken and lacked maintenance"; # Added 2025-11-09 + gpy = throw "'gpy' has been removed as it is based on 'paramz', which was removed"; # added 2025-11-10 gradient_statsd = throw "'gradient_statsd' has been renamed to/replaced by 'gradient-statsd'"; # Converted to throw 2025-10-29 grappelli_safe = throw "'grappelli_safe' has been renamed to/replaced by 'grappelli-safe'"; # Converted to throw 2025-10-29 groestlcoin_hash = throw "'groestlcoin_hash' has been renamed to/replaced by 'groestlcoin-hash'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 34ed3f19e912..92dc87404a66 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6314,8 +6314,6 @@ self: super: with self; { gpxpy = callPackage ../development/python-modules/gpxpy { }; - gpy = callPackage ../development/python-modules/gpy { }; - gpytorch = callPackage ../development/python-modules/gpytorch { }; gql = callPackage ../development/python-modules/gql { };