2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
2022-03-30 09:31:56 +00:00
|
|
|
, stdenv
|
2021-09-26 12:46:18 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# propgatedBuildInputs
|
|
|
|
, adal
|
|
|
|
, 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
|
|
|
, setuptools
|
|
|
|
, six
|
2021-09-26 12:46:18 +00:00
|
|
|
, urllib3
|
|
|
|
, websocket-client
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kubernetes";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "25.3.0";
|
2021-09-26 12:46:18 +00:00
|
|
|
format = "setuptools";
|
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}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-LKj9zt9ou3zfPnpOP2MMycby0qqW3dtI4CmW/E6jv0Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
adal
|
|
|
|
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
|
|
|
setuptools
|
|
|
|
six
|
2021-09-26 12:46:18 +00:00
|
|
|
urllib3
|
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"kubernetes"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
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";
|
|
|
|
license = licenses.asl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ lsix SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|