Merge pull request #108712 from fabaff/airly

This commit is contained in:
Sandro 2021-01-10 02:28:09 +01:00 committed by GitHub
commit c42a4f0cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "airly";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ak-ambi";
repo = "python-airly";
rev = "v${version}";
sha256 = "0an6nbl0i5pahxm6x4z03s9apzgqrw9zf7srjcs0r3y1ppicb4s6";
};
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook ];
disabledTests = [
"InstallationsLoaderTestCase"
"MeasurementsSessionTestCase"
];
pythonImportsCheck = [ "airly" ];
meta = with lib; {
description = "Python module for getting air quality data from Airly sensors";
homepage = "https://github.com/ak-ambi/python-airly";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

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

View file

@ -273,6 +273,8 @@ in {
aiozeroconf = callPackage ../development/python-modules/aiozeroconf { };
airly = callPackage ../development/python-modules/airly { };
ajpy = callPackage ../development/python-modules/ajpy { };
alabaster = callPackage ../development/python-modules/alabaster { };