27 lines
681 B
Nix
27 lines
681 B
Nix
{ lib, buildPythonPackage, isPy3k, fetchPypi, aiohttp, async-timeout }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "luftdaten";
|
|
version = "0.6.5";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-5SFb+psULyg9UKVY3oJPNLF3TGS/W+Bxoj79iTzReL4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ aiohttp async-timeout ];
|
|
|
|
# No tests implemented
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "luftdaten" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for interacting with luftdaten.info";
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-luftdaten";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|