summary refs log tree commit diff
path: root/pkgs/development/python-modules/bsblan/default.nix
blob: 58a3382c18b7d3a60a5641fec2f39849b48d07a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, aresponses
, coverage
, mypy
, pytest-asyncio
, pytest-cov
, pytest-mock
, aiohttp
, attrs
, cattrs
, yarl
}:

buildPythonPackage rec {
  pname = "bsblan";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "liudger";
    repo = "python-bsblan";
    rev = "v.${version}";
    sha256 = "1j41y2njnalcsp1vjqwl508yp3ki82lv8108ijz52hprhrq4fffb";
  };

  propagatedBuildInputs = [
    aiohttp
    attrs
    cattrs
    yarl
  ];

  checkInputs = [
    aresponses
    coverage
    mypy
    pytest-asyncio
    pytest-cov
    pytest-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "bsblan" ];

  meta = with lib; {
    description = "Python client for BSB-Lan";
    homepage = "https://github.com/liudger/python-bsblan";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}