diff --git a/pkgs/development/python-modules/python-neutronclient/default.nix b/pkgs/development/python-modules/python-neutronclient/default.nix index 0c68f8c086db..210a06acc4ab 100644 --- a/pkgs/development/python-modules/python-neutronclient/default.nix +++ b/pkgs/development/python-modules/python-neutronclient/default.nix @@ -43,6 +43,12 @@ buildPythonPackage rec { hash = "sha256-U82ZI/Q6OwdypA41YfdGVa3IA4+QJhqz3gW2IR0S7cs="; }; + patches = [ + # fix wheel metadata to support python 3.12 + # based on https://github.com/openstack/python-neutronclient/commit/f882f1ddb60bcd77096eb8a74e9e86d10723e8be + ./python-3.12.diff + ]; + build-system = [ setuptools pbr @@ -91,7 +97,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python bindings for the OpenStack Networking API"; - homepage = "https://opendev.org/openstack/python-neutronclient/"; + homepage = "https://github.com/openstack/python-neutronclient/"; license = licenses.asl20; maintainers = teams.openstack.members; }; diff --git a/pkgs/development/python-modules/python-neutronclient/python-3.12.diff b/pkgs/development/python-modules/python-neutronclient/python-3.12.diff new file mode 100644 index 000000000000..2ff78436737e --- /dev/null +++ b/pkgs/development/python-modules/python-neutronclient/python-3.12.diff @@ -0,0 +1,23 @@ +--- a/setup.cfg 2024-12-25 04:00:53.429397282 +0100 ++++ b/setup.cfg 2024-12-25 04:03:48.308447471 +0100 +@@ -6,7 +6,7 @@ + author = OpenStack Networking Project + author_email = openstack-discuss@lists.openstack.org + home_page = https://docs.openstack.org/python-neutronclient/latest/ +-python_requires = >=3.8 ++python_requires = >=3.9 + classifier = + Environment :: OpenStack + Intended Audience :: Developers +@@ -18,8 +18,10 @@ + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3 +- Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 ++ Programming Language :: Python :: 3.10 ++ Programming Language :: Python :: 3.11 ++ Programming Language :: Python :: 3.12 + + [files] + packages =