mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 05:44:08 +01:00
39 lines
836 B
Nix
39 lines
836 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "hcloud";
|
|
version = "2.17.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-OZat72vA9XVWULuLiwJKzrqywp4hfaxXnDA3Ivw3roU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|