mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-30 05:55:40 +00:00
59 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|