1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 coreutils, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 aiohttp, 12 certifi, 13 python-dateutil, 14 pyyaml, 15 six, 16 urllib3, 17 18 # tests 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "kubernetes-asyncio"; 24 version = "33.3.0"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "tomplus"; 29 repo = "kubernetes_asyncio"; 30 tag = version; 31 hash = "sha256-Ei5Y2IBBk8AoMQQBHOvKkJ1H+9dmnz22qrrZKrWazVE="; 32 }; 33 34 postPatch = '' 35 substituteInPlace kubernetes_asyncio/config/google_auth_test.py \ 36 --replace-fail "/bin/echo" "${lib.getExe' coreutils "echo"}" 37 ''; 38 39 build-system = [ 40 setuptools 41 ]; 42 43 dependencies = [ 44 aiohttp 45 certifi 46 python-dateutil 47 pyyaml 48 six 49 urllib3 50 ]; 51 52 pythonImportsCheck = [ 53 "kubernetes_asyncio" 54 ]; 55 56 nativeCheckInputs = [ 57 pytestCheckHook 58 ]; 59 60 __darwinAllowLocalNetworking = true; 61 62 meta = { 63 description = "Python asynchronous client library for Kubernetes http://kubernetes.io"; 64 homepage = "https://github.com/tomplus/kubernetes_asyncio"; 65 changelog = "https://github.com/tomplus/kubernetes_asyncio/blob/${src.rev}/CHANGELOG.md"; 66 license = lib.licenses.asl20; 67 maintainers = with lib.maintainers; [ GaetanLepage ]; 68 }; 69}