depot/third_party/nixpkgs/pkgs/development/python-modules/kubernetes/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

63 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# propgatedBuildInputs
, adal
, certifi
, google-auth
, python-dateutil
, pyyaml
, requests
, requests_oauthlib
, urllib3
, websocket-client
# tests
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "kubernetes";
version = "20.13.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kubernetes-client";
repo = "python";
rev = "v${version}";
sha256 = "sha256-zZb5jEQEluY1dfa7UegW+P7MV86ESqOey7kkC74ETlM=";
fetchSubmodules = true;
};
propagatedBuildInputs = [
adal
certifi
google-auth
python-dateutil
pyyaml
requests
requests_oauthlib
urllib3
websocket-client
];
pythonImportsCheck = [
"kubernetes"
];
checkInputs = [
mock
pytestCheckHook
];
meta = with lib; {
description = "Kubernetes python client";
homepage = "https://github.com/kubernetes-client/python";
license = licenses.asl20;
maintainers = with maintainers; [ lsix ];
};
}