Merge pull request #112932 from fabaff/pyairnow

This commit is contained in:
Sandro 2021-02-12 20:00:24 +01:00 committed by GitHub
commit d2ae78f353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,45 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, poetry
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyairnow";
version = "1.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "asymworks";
repo = pname;
rev = "v${version}";
sha256 = "1hkpfl8rdwyzqrr1drqlmcw3xpv3pi1jf19h1divspbzwarqxs1c";
};
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [
aioresponses
pytest-asyncio
pytest-aiohttp
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "pyairnow" ];
meta = with lib; {
description = "Python wrapper for EPA AirNow Air Quality API";
homepage = "https://github.com/asymworks/pyairnow";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -16,7 +16,7 @@
"agent_dvr" = ps: with ps; [ agent-py ];
"air_quality" = ps: with ps; [ ];
"airly" = ps: with ps; [ airly ];
"airnow" = ps: with ps; [ ]; # missing inputs: pyairnow
"airnow" = ps: with ps; [ pyairnow ];
"airvisual" = ps: with ps; [ pyairvisual ];
"aladdin_connect" = ps: with ps; [ ]; # missing inputs: aladdin_connect
"alarm_control_panel" = ps: with ps; [ ];

View File

@ -5199,6 +5199,8 @@ in {
pyahocorasick = callPackage ../development/python-modules/pyahocorasick { };
pyairnow = callPackage ../development/python-modules/pyairnow { };
pyairvisual = callPackage ../development/python-modules/pyairvisual { };
pyalgotrade = callPackage ../development/python-modules/pyalgotrade { };