Files
nixpkgs/pkgs/development/python-modules/hcloud/default.nix
T
2025-12-24 15:34:33 +00:00

40 lines
802 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "hcloud";
version = "2.13.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-l0sio2w0fhE/+LJavSzThoARKISFGStWJynbprIjdeE=";
};
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${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ liff ];
};
}