1{ lib, buildPythonPackage, isPy3k, fetchPypi, aiohttp, async-timeout }:
2
3buildPythonPackage rec {
4 pname = "luftdaten";
5 version = "0.6.5";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-5SFb+psULyg9UKVY3oJPNLF3TGS/W+Bxoj79iTzReL4=";
12 };
13
14 propagatedBuildInputs = [ aiohttp async-timeout ];
15
16 # No tests implemented
17 doCheck = false;
18
19 pythonImportsCheck = [ "luftdaten" ];
20
21 meta = with lib; {
22 description = "Python API for interacting with luftdaten.info";
23 homepage = "https://github.com/home-assistant-ecosystem/python-luftdaten";
24 license = licenses.mit;
25 maintainers = with maintainers; [ dotlambda ];
26 };
27}