Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, pytestCheckHook 6, responses 7}: 8 9buildPythonPackage rec { 10 pname = "upcloud-api"; 11 version = "2.0.1"; 12 13 src = fetchFromGitHub { 14 owner = "UpCloudLtd"; 15 repo = "upcloud-python-api"; 16 rev = "refs/tags/v${version}"; 17 sha256 = "sha256-thmrbCpGjlDkHIZwIjRgIVMplaypiKByFS/nS8F2LXA="; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 ]; 23 24 nativeCheckInputs = [ 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}