Files
nixpkgs/pkgs/development/python-modules/linode-api4/default.nix
Fabian Affolter 0988e147b5 python3Packages.linode-api4: init at 5.45.0
Official Python bindings for the Linode API

https://github.com/linode/linode_api4-python
2026-06-26 03:15:17 +02:00

59 lines
1.1 KiB
Nix

{
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 ];
};
})