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 = "1.3.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "elupus";
22 repo = "arcam_fmj";
23 rev = "refs/tags/${version}";
24 hash = "sha256-TFZoWni33dzioADpTt50fqwBlZ/rdUergGs3s3d0504=";
25 };
26
27 propagatedBuildInputs = [
28 aiohttp
29 attrs
30 defusedxml
31 ];
32
33 nativeCheckInputs = [
34 pytest-aiohttp
35 pytest-mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "arcam.fmj"
41 "arcam.fmj.client"
42 "arcam.fmj.state"
43 "arcam.fmj.utils"
44 ];
45
46 meta = with lib; {
47 description = "Python library for speaking to Arcam receivers";
48 homepage = "https://github.com/elupus/arcam_fmj";
49 changelog = "https://github.com/elupus/arcam_fmj/releases/tag/${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ dotlambda ];
52 };
53}