From c979dd10b15814f3a6409702db7cb7a38f612b0e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 21 May 2022 07:55:09 +0000 Subject: [PATCH 1/2] python310Packages.openstacksdk: 0.61.0 -> 0.99.0 --- pkgs/development/python-modules/openstacksdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/openstacksdk/default.nix b/pkgs/development/python-modules/openstacksdk/default.nix index 976088baad76..a983f148c571 100644 --- a/pkgs/development/python-modules/openstacksdk/default.nix +++ b/pkgs/development/python-modules/openstacksdk/default.nix @@ -18,11 +18,11 @@ buildPythonPackage rec { pname = "openstacksdk"; - version = "0.61.0"; + version = "0.99.0"; src = fetchPypi { inherit pname version; - sha256 = "3eed308871230f0c53a8f58b6c5a358b184080c6b2c6bc69ab088eea057aa127"; + sha256 = "sha256-P3PDzCgInpOzQut/NIsoX1pl/+UFiYvhXbJQx1u4Ves="; }; propagatedBuildInputs = [ From d487e6170c260cb26368880918be5797ed207021 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 May 2022 10:02:22 +0200 Subject: [PATCH 2/2] python310Packages.openstacksdk: disable on older Python releases --- .../python-modules/openstacksdk/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/openstacksdk/default.nix b/pkgs/development/python-modules/openstacksdk/default.nix index a983f148c571..98906606fa5e 100644 --- a/pkgs/development/python-modules/openstacksdk/default.nix +++ b/pkgs/development/python-modules/openstacksdk/default.nix @@ -12,6 +12,7 @@ , netifaces , os-service-types , pbr +, pythonOlder , pyyaml , requestsexceptions }: @@ -19,10 +20,13 @@ buildPythonPackage rec { pname = "openstacksdk"; version = "0.99.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-P3PDzCgInpOzQut/NIsoX1pl/+UFiYvhXbJQx1u4Ves="; + hash = "sha256-P3PDzCgInpOzQut/NIsoX1pl/+UFiYvhXbJQx1u4Ves="; }; propagatedBuildInputs = [ @@ -47,7 +51,9 @@ buildPythonPackage rec { tests = callPackage ./tests.nix { }; }; - pythonImportsCheck = [ "openstack" ]; + pythonImportsCheck = [ + "openstack" + ]; meta = with lib; { description = "An SDK for building applications to work with OpenStack";