1{ lib
2, aiohttp
3, async-timeout
4, buildPythonPackage
5, fetchFromGitHub
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "airthings-cloud";
11 version = "0.0.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "Danielhiversen";
18 repo = "pyAirthings";
19 rev = version;
20 sha256 = "08cbysx5p9k8hzr6sdykx91j0gx8x15b8807338dsl3qx8nhfb8j";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 async-timeout
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "airthings" ];
32
33 meta = with lib; {
34 description = "Python module for Airthings";
35 homepage = "https://github.com/Danielhiversen/pyAirthings";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ fab ];
38 };
39}