Files
nixpkgs/pkgs/development/python-modules/linode-api/default.nix
2025-10-30 17:11:25 +00:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
polling,
deprecated,
pytestCheckHook,
mock,
httpretty,
}:
buildPythonPackage rec {
pname = "linode-api";
version = "5.38.0";
pyproject = true;
# Sources from Pypi exclude test fixtures
src = fetchFromGitHub {
owner = "linode";
repo = "python-linode-api";
tag = "v${version}";
hash = "sha256-ToM3ur0bqU5xXCtO8ekZwpvM1bRxtwa7CqOzGJEyY7I=";
};
build-system = [ setuptools ];
dependencies = [
requests
polling
deprecated
];
nativeCheckInputs = [
pytestCheckHook
mock
httpretty
];
disabledTestPaths = [
# needs api token
"test/integration"
];
pythonImportsCheck = [ "linode_api4" ];
meta = {
description = "Python library for the Linode API v4";
homepage = "https://github.com/linode/python-linode-api";
changelog = "https://github.com/linode/linode_api4-python/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ glenns ];
};
}