diff options
Diffstat (limited to 'pkgs/development/python-modules/kubernetes/default.nix')
-rw-r--r-- | pkgs/development/python-modules/kubernetes/default.nix | 66 |
1 files changed, 26 insertions, 40 deletions
diff --git a/pkgs/development/python-modules/kubernetes/default.nix b/pkgs/development/python-modules/kubernetes/default.nix index f5bf179d48db..66a295dcc5a7 100644 --- a/pkgs/development/python-modules/kubernetes/default.nix +++ b/pkgs/development/python-modules/kubernetes/default.nix @@ -1,27 +1,27 @@ -{ lib -, stdenv -, adal -, buildPythonPackage -, certifi -, fetchFromGitHub -, google-auth -, mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, requests-oauthlib -, setuptools -, six -, urllib3 -, websocket-client +{ + lib, + stdenv, + adal, + buildPythonPackage, + certifi, + fetchFromGitHub, + google-auth, + mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + pyyaml, + requests, + requests-oauthlib, + setuptools, + six, + urllib3, + websocket-client, }: buildPythonPackage rec { pname = "kubernetes"; - version = "29.0.0"; + version = "30.1.0"; pyproject = true; disabled = pythonOlder "3.6"; @@ -30,20 +30,10 @@ buildPythonPackage rec { owner = "kubernetes-client"; repo = "python"; rev = "refs/tags/v${version}"; - hash = "sha256-KChfiXYnJTeIW6O7GaK/fMxU2quIvbjc4gB4aZBeTtI="; + hash = "sha256-zOooibXkk0iA6IYJViz+SIMgHwG0fr4WR3ZjhgIeUjE="; }; - postPatch = '' - substituteInPlace kubernetes/base/config/kube_config_test.py \ - --replace-fail "assertEquals" "assertEqual" - ''; - - pythonRelaxDeps = [ - "urllib3" - ]; - build-system = [ - pythonRelaxDepsHook setuptools ]; @@ -59,22 +49,18 @@ buildPythonPackage rec { websocket-client ]; - passthru.optional-dependencies = { - adal = [ - adal - ]; + optional-dependencies = { + adal = [ adal ]; }; - pythonImportsCheck = [ - "kubernetes" - ]; + pythonImportsCheck = [ "kubernetes" ]; nativeCheckInputs = [ mock pytestCheckHook - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (builtins.attrValues optional-dependencies); - disabledTests = lib.optionals stdenv.isDarwin [ + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # AssertionError: <class 'urllib3.poolmanager.ProxyManager'> != <class 'urllib3.poolmanager.Poolmanager'> "test_rest_proxycare" ]; |