1{ lib
2, buildPythonPackage
3, fetchPypi
4, future
5, mock
6, pytestCheckHook
7, python-dateutil
8, pythonOlder
9, requests
10}:
11
12buildPythonPackage rec {
13 pname = "hcloud";
14 version = "1.19.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-IKgK8UQYVPV8zm0wqmVyFDeRv0h9+1iwJ3Ih6yrXIOM=";
22 };
23
24 propagatedBuildInputs = [
25 future
26 requests
27 python-dateutil
28 ];
29
30 nativeCheckInputs = [
31 mock
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "hcloud"
37 ];
38
39 meta = with lib; {
40 description = "Library for the Hetzner Cloud API";
41 homepage = "https://github.com/hetznercloud/hcloud-python";
42 changelog = "https://github.com/hetznercloud/hcloud-python/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ liff ];
45 };
46}