1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchPypi,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "asmog";
12 version = "0.0.6";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "14b8hdxcks6qyrqpp4mm77fvzznbskqn7fw9qgwgcqx81pg45iwk";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 async-timeout
25 ];
26
27 # Project doesn't ship the tests
28 # https://github.com/kstaniek/python-ampio-smog-api/issues/2
29 doCheck = false;
30
31 pythonImportsCheck = [ "asmog" ];
32
33 meta = with lib; {
34 description = "Python module for Ampio Smog Sensors";
35 homepage = "https://github.com/kstaniek/python-ampio-smog-api";
36 license = with licenses; [ asl20 ];
37 maintainers = with maintainers; [ fab ];
38 };
39}