2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
adal,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
google-auth,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
requests-oauthlib,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
urllib3,
|
|
|
|
websocket-client,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kubernetes";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "30.1.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-client";
|
|
|
|
repo = "python";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-zOooibXkk0iA6IYJViz+SIMgHwG0fr4WR3ZjhgIeUjE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-09-26 12:46:18 +00:00
|
|
|
certifi
|
|
|
|
google-auth
|
|
|
|
python-dateutil
|
|
|
|
pyyaml
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2022-06-16 17:23:12 +00:00
|
|
|
six
|
2021-09-26 12:46:18 +00:00
|
|
|
urllib3
|
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
adal = [ adal ];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "kubernetes" ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-26 12:46:18 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2024-07-27 06:49:29 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2022-03-30 09:31:56 +00:00
|
|
|
# AssertionError: <class 'urllib3.poolmanager.ProxyManager'> != <class 'urllib3.poolmanager.Poolmanager'>
|
|
|
|
"test_rest_proxycare"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Kubernetes Python client";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kubernetes-client/python";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/kubernetes-client/python/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ lsix ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|