1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytest-aiohttp,
8 pytestCheckHook,
9 pythonOlder,
10 voluptuous,
11 vcrpy,
12}:
13
14buildPythonPackage rec {
15 pname = "python-awair";
16 version = "0.2.4";
17 format = "pyproject";
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "ahayworth";
22 repo = "python_awair";
23 rev = version;
24 hash = "sha256-zdZyA6adM4bfEYupdZl7CzMjwyfRkQBrntNh0MusynE=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 voluptuous
32 ];
33
34 # Failed: async def functions are not natively supported.
35 doCheck = false;
36
37 nativeCheckInputs = [
38 pytest-aiohttp
39 pytestCheckHook
40 vcrpy
41 ];
42
43 pythonImportsCheck = [ "python_awair" ];
44
45 meta = with lib; {
46 description = "Python library for the Awair API";
47 homepage = "https://github.com/ahayworth/python_awair";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}