Files
2026-05-08 22:29:19 +00:00

40 lines
836 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "hcloud";
version = "2.20.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-JwUu/6saJbs8v8ji0kcuDoUDsgrsq1u61cSw6Gl2ltU=";
};
build-system = [ setuptools ];
dependencies = [
requests
python-dateutil
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hcloud" ];
meta = {
description = "Library for the Hetzner Cloud API";
homepage = "https://github.com/hetznercloud/hcloud-python";
changelog = "https://github.com/hetznercloud/hcloud-python/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ liff ];
};
})