1{ lib
2, aiohttp
3, aioresponses
4, asynccmd
5, buildPythonPackage
6, fetchFromGitHub
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "pyspcwebgw";
14 version = "0.5.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "mbrrg";
21 repo = pname;
22 rev = "v${version}";
23 sha256 = "0pc25myjc2adqcx2lbns9kw0gy17x1qjgicmfj46n6fn0c786p9v";
24 };
25
26 propagatedBuildInputs = [
27 asynccmd
28 aiohttp
29 ];
30
31 checkInputs = [
32 aioresponses
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pyspcwebgw" ];
38
39 meta = with lib; {
40 description = "Python module for the SPC Web Gateway REST API";
41 homepage = "https://github.com/mbrrg/pyspcwebgw";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}