1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pyjwt,
7 pythonOlder,
8 pytestCheckHook,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "pyixapi";
14 version = "0.2.6";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "peering-manager";
21 repo = "pyixapi";
22 tag = version;
23 hash = "sha256-NS8rVzLpEtpuLal6sApXI3hjASiIeXZuZ4xyj9Zv1k0=";
24 };
25
26 pythonRelaxDeps = [ "pyjwt" ];
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 requests
32 pyjwt
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "pyixapi" ];
38
39 meta = with lib; {
40 description = "Python API client library for IX-API";
41 homepage = "https://github.com/peering-manager/pyixapi/";
42 changelog = "https://github.com/peering-manager/pyixapi/releases/tag/${src.tag}";
43 license = licenses.asl20;
44 teams = [ teams.wdz ];
45 };
46}