2024-10-21 17:33:07 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
coreutils,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
aiohttp,
|
|
|
|
certifi,
|
|
|
|
python-dateutil,
|
|
|
|
pyyaml,
|
|
|
|
six,
|
|
|
|
urllib3,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kubernetes-asyncio";
|
2025-04-17 00:40:41 +02:00
|
|
|
version = "32.3.0";
|
2024-10-21 17:33:07 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomplus";
|
|
|
|
repo = "kubernetes_asyncio";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2025-04-17 00:40:41 +02:00
|
|
|
hash = "sha256-EqFecu389zS/DqwoMz9ptaLv+jwJhABTEdMv8nwCSTQ=";
|
2024-10-21 17:33:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace kubernetes_asyncio/config/google_auth_test.py \
|
|
|
|
--replace-fail "/bin/echo" "${lib.getExe' coreutils "echo"}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
aiohttp
|
|
|
|
certifi
|
|
|
|
python-dateutil
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"kubernetes_asyncio"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python asynchronous client library for Kubernetes http://kubernetes.io";
|
|
|
|
homepage = "https://github.com/tomplus/kubernetes_asyncio";
|
|
|
|
changelog = "https://github.com/tomplus/kubernetes_asyncio/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|