1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, aiohttp
6, attrs
7, defusedxml
8, pytest-aiohttp
9, pytest-mock
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "arcam-fmj";
15 version = "0.12.0";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "elupus";
21 repo = "arcam_fmj";
22 rev = version;
23 sha256 = "sha256-YkoABsOLEl1gSCRgZr0lLZGzicr3N5KRNLDjfuQhy2U=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 attrs
29 defusedxml
30 ];
31
32 checkInputs = [
33 pytest-aiohttp
34 pytest-mock
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "arcam.fmj"
40 "arcam.fmj.client"
41 "arcam.fmj.state"
42 "arcam.fmj.utils"
43 ];
44
45 meta = with lib; {
46 description = "Python library for speaking to Arcam receivers";
47 homepage = "https://github.com/elupus/arcam_fmj";
48 license = licenses.mit;
49 maintainers = with maintainers; [ dotlambda ];
50 };
51}