1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, aiohttp
6, async-timeout
7, aioresponses
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "foobot-async";
13 version = "1.0.0";
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 pname = "foobot_async";
19 inherit version;
20 sha256 = "fa557a22de925139cb4a21034ffdbcd01d28bf166c0e680eaf84a99206327f40";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 async-timeout
26 ];
27
28 checkInputs = [
29 aioresponses
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "foobot_async" ];
34
35 meta = with lib; {
36 description = "API Client for Foobot Air Quality Monitoring devices";
37 homepage = "https://github.com/reefab/foobot_async";
38 license = licenses.mit;
39 maintainers = with maintainers; [ dotlambda ];
40 };
41}