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