mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

Diff: https://github.com/tomplus/kubernetes_asyncio/compare/refs/tags/31.1.0...refs/tags/32.3.0 Changelog: https://github.com/tomplus/kubernetes_asyncio/blob/refs/tags/32.3.0/CHANGELOG.md
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
coreutils,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
certifi,
|
|
python-dateutil,
|
|
pyyaml,
|
|
six,
|
|
urllib3,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kubernetes-asyncio";
|
|
version = "32.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomplus";
|
|
repo = "kubernetes_asyncio";
|
|
tag = version;
|
|
hash = "sha256-EqFecu389zS/DqwoMz9ptaLv+jwJhABTEdMv8nwCSTQ=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|