Files
nixpkgs/pkgs/development/python-modules/hcloud/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
803 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "hcloud";
version = "2.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-2CND7VTwzPFHXiSYTL06BKxIMLVovzcH+FVAJD9hQ0s=";
};
build-system = [ setuptools ];
dependencies = [
requests
python-dateutil
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hcloud" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ liff ];
};
}