1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "aiolyric";
11 version = "1.1.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "timmo001";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-LDLpNuwkoPacI/a2NSlqUABRgwy+jAjGwOxmShLskso=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # AssertionError, https://github.com/timmo001/aiolyric/issues/61
33 "test_priority"
34 ];
35
36 pythonImportsCheck = [
37 "aiolyric"
38 ];
39
40 meta = with lib; {
41 description = "Python module for the Honeywell Lyric Platform";
42 homepage = "https://github.com/timmo001/aiolyric";
43 changelog = "https://github.com/timmo001/aiolyric/releases/tag/v${version}";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}