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