1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, pytestCheckHook
6, responses
7}:
8
9buildPythonPackage rec {
10 pname = "upcloud-api";
11 version = "2.5.1";
12
13 src = fetchFromGitHub {
14 owner = "UpCloudLtd";
15 repo = "upcloud-python-api";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-fMsI0aZ8jA08rrNPm8HmfYz/a3HLUExvvXIeDGPh2e8=";
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 changelog = "https://github.com/UpCloudLtd/upcloud-python-api/blob/${src.rev}/CHANGELOG.md";
33 description = "UpCloud API Client";
34 homepage = "https://github.com/UpCloudLtd/upcloud-python-api";
35 license = licenses.mit;
36 maintainers = with maintainers; [ dotlambda ];
37 };
38}