Files
nixpkgs/pkgs/development/python-modules/kubernetes/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

75 lines
1.4 KiB
Nix

{
lib,
stdenv,
adal,
buildPythonPackage,
certifi,
durationpy,
fetchFromGitHub,
google-auth,
mock,
pytestCheckHook,
python-dateutil,
pyyaml,
requests,
requests-oauthlib,
setuptools,
six,
urllib3,
websocket-client,
}:
buildPythonPackage rec {
pname = "kubernetes";
version = "33.1.0";
pyproject = true;
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;
};
}