1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, aresponses
6, coverage
7, mypy
8, pytest-asyncio
9, pytest-cov
10, pytest-mock
11, aiohttp
12, attrs
13, cattrs
14, yarl
15}:
16
17buildPythonPackage rec {
18 pname = "bsblan";
19 version = "0.4.1";
20
21 src = fetchFromGitHub {
22 owner = "liudger";
23 repo = "python-bsblan";
24 rev = "v.${version}";
25 sha256 = "0vyg9vsrs34jahlav83qp2djv81p3ks31qz4qh46zdij2nx7l1fv";
26 };
27
28 propagatedBuildInputs = [
29 aiohttp
30 attrs
31 cattrs
32 yarl
33 ];
34
35 checkInputs = [
36 aresponses
37 coverage
38 mypy
39 pytest-asyncio
40 pytest-cov
41 pytest-mock
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "bsblan" ];
46
47 meta = with lib; {
48 description = "Python client for BSB-Lan";
49 homepage = "https://github.com/liudger/python-bsblan";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}