python3Packages.linode-api4: init at 5.45.0

Official Python bindings for the Linode API

https://github.com/linode/linode_api4-python
This commit is contained in:
Fabian Affolter
2026-06-26 03:15:17 +02:00
parent 1ff982dd2d
commit 0988e147b5
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{
lib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
httpretty,
mock,
nix-update-script,
polling,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "linode-api4";
version = "5.45.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "linode";
repo = "linode_api4-python";
tag = "v${finalAttrs.version}";
hash = "sha256-0FLF/LkU8SaR3itgMISbqOxmd4UZkGlTT3VDpmuv+QQ=";
};
build-system = [ setuptools ];
dependencies = [
deprecated
polling
requests
];
nativeCheckInputs = [
httpretty
mock
pytestCheckHook
];
pythonImportsCheck = [ "linode_api4" ];
disabledTestPaths = [
# Tests require an API token
"test/integration/"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Official Python bindings for the Linode API";
homepage = "https://github.com/linode/linode_api4-python";
changelog = "https://github.com/linode/linode_api4-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
})
+2
View File
@@ -9274,6 +9274,8 @@ self: super: with self; {
linode-api = callPackage ../development/python-modules/linode-api { };
linode-api4 = callPackage ../development/python-modules/linode-api4 { };
linode-metadata = callPackage ../development/python-modules/linode-metadata { };
linuxdoc = callPackage ../development/python-modules/linuxdoc { };