at master 803 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 python-dateutil, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "hcloud"; 13 version = "2.7.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-2CND7VTwzPFHXiSYTL06BKxIMLVovzcH+FVAJD9hQ0s="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ 24 requests 25 python-dateutil 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "hcloud" ]; 31 32 meta = with lib; { 33 description = "Library for the Hetzner Cloud API"; 34 homepage = "https://github.com/hetznercloud/hcloud-python"; 35 changelog = "https://github.com/hetznercloud/hcloud-python/releases/tag/v${version}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ liff ]; 38 }; 39}