1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 requests,
7 polling,
8 deprecated,
9 pytestCheckHook,
10 mock,
11 httpretty,
12}:
13
14buildPythonPackage rec {
15 pname = "linode-api";
16 version = "5.37.0";
17 pyproject = true;
18
19 # Sources from Pypi exclude test fixtures
20 src = fetchFromGitHub {
21 owner = "linode";
22 repo = "python-linode-api";
23 tag = "v${version}";
24 hash = "sha256-fRTTXWkn1YBWW9xrFm3y6o7f8ZdYhObqVLSHAuiNHak=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 requests
31 polling
32 deprecated
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 mock
38 httpretty
39 ];
40
41 disabledTestPaths = [
42 # needs api token
43 "test/integration"
44 ];
45
46 pythonImportsCheck = [ "linode_api4" ];
47
48 meta = {
49 description = "Python library for the Linode API v4";
50 homepage = "https://github.com/linode/python-linode-api";
51 changelog = "https://github.com/linode/linode_api4-python/releases/tag/${src.tag}";
52 license = lib.licenses.bsd3;
53 maintainers = with lib.maintainers; [ glenns ];
54 };
55}