1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, pytestCheckHook 6, responses 7}: 8 9buildPythonPackage rec { 10 pname = "upcloud-api"; 11 version = "2.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "UpCloudLtd"; 15 repo = "upcloud-python-api"; 16 rev = "v${version}"; 17 sha256 = "1kkgrn97pw4k49ys97hjrvh2j8y2p2r9970v9csgrk5wci4562wm"; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 responses 27 ]; 28 29 pythonImportsCheck = [ "upcloud_api" ]; 30 31 meta = with lib; { 32 description = "UpCloud API Client"; 33 homepage = "https://github.com/UpCloudLtd/upcloud-python-api"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ dotlambda ]; 36 }; 37}