Files
nixpkgs/pkgs/development/python-modules/kubernetes/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

78 lines
1.4 KiB
Nix

{
lib,
stdenv,
adal,
buildPythonPackage,
certifi,
durationpy,
fetchFromGitHub,
google-auth,
mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
pyyaml,
requests,
requests-oauthlib,
setuptools,
six,
urllib3,
websocket-client,
}:
buildPythonPackage rec {
pname = "kubernetes";
version = "33.1.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kubernetes-client";
repo = "python";
tag = "v${version}";
hash = "sha256-+jL0XS7Y8qOqzZ5DcG/hZFUpj7krJAaA4fgPNSEgIAE=";
};
build-system = [
setuptools
];
dependencies = [
certifi
durationpy
google-auth
python-dateutil
pyyaml
requests
requests-oauthlib
six
urllib3
websocket-client
];
optional-dependencies = {
adal = [ adal ];
};
pythonImportsCheck = [ "kubernetes" ];
nativeCheckInputs = [
mock
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# AssertionError: <class 'urllib3.poolmanager.ProxyManager'> != <class 'urllib3.poolmanager.Poolmanager'>
"test_rest_proxycare"
];
meta = {
description = "Kubernetes Python client";
homepage = "https://github.com/kubernetes-client/python";
changelog = "https://github.com/kubernetes-client/python/releases/tag/${src.tag}";
license = lib.licenses.asl20;
};
}