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