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