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