1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "aiolyric";
11 version = "1.0.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "timmo001";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-yKeG0UCQ8haT1hvywoIwKQ519GK2wFg0wXaRTFeKYIk=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # AssertionError, https://github.com/timmo001/aiolyric/issues/5
33 "test_location"
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 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}