nixpkgs/pkgs/development/python-modules/luftdaten/default.nix
2021-03-17 13:36:00 +01:00

28 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 ];
};
}