-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.kubernetes-asyncio: init at 31.1.0
- Loading branch information
1 parent
66a8977
commit e4f927a
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
pkgs/development/python-modules/kubernetes-asyncio/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
coreutils, | ||
|
||
# build-system | ||
setuptools, | ||
|
||
# dependencies | ||
aiohttp, | ||
certifi, | ||
python-dateutil, | ||
pyyaml, | ||
six, | ||
urllib3, | ||
|
||
# tests | ||
pytestCheckHook, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "kubernetes-asyncio"; | ||
version = "31.1.0"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tomplus"; | ||
repo = "kubernetes_asyncio"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-YKBqhUeLqLiQ6bK235zTm4salnSLUxl4DUiFLQSjWqw="; | ||
}; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters