1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 pytestCheckHook,
7 responses,
8}:
9
10buildPythonPackage rec {
11 pname = "upcloud-api";
12 version = "2.5.1";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "UpCloudLtd";
17 repo = "upcloud-python-api";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-fMsI0aZ8jA08rrNPm8HmfYz/a3HLUExvvXIeDGPh2e8=";
20 };
21
22 propagatedBuildInputs = [ requests ];
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}