Merge pull request #125497 from fabaff/nettigo-air-monitor
This commit is contained in:
commit
f052ef14e7
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, aioresponses
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytest-error-for-skips
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nettigo-air-monitor";
|
||||
version = "0.2.6";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bieniu";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0zs14g02m1ahyrhl2ihk74fp390g4672r1jjiaawmkxrvib07dvp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytest-error-for-skips
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner" ""
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov --cov-report term-missing " ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "nettigo_air_monitor" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to get air quality data from Nettigo Air Monitor devices";
|
||||
homepage = "https://github.com/bieniu/nettigo-air-monitor";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -544,7 +544,7 @@
|
||||
"mystrom" = ps: with ps; [ aiohttp-cors python-mystrom ];
|
||||
"mythicbeastsdns" = ps: with ps; [ ]; # missing inputs: mbddns
|
||||
"nad" = ps: with ps; [ nad-receiver ];
|
||||
"nam" = ps: with ps; [ ]; # missing inputs: nettigo-air-monitor
|
||||
"nam" = ps: with ps; [ nettigo-air-monitor ];
|
||||
"namecheapdns" = ps: with ps; [ defusedxml ];
|
||||
"nanoleaf" = ps: with ps; [ pynanoleaf ];
|
||||
"neato" = ps: with ps; [ aiohttp-cors pybotvac ];
|
||||
|
@ -502,6 +502,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"my"
|
||||
"myq"
|
||||
"mysensors"
|
||||
"nam"
|
||||
"namecheapdns"
|
||||
"neato"
|
||||
"netatmo"
|
||||
|
@ -4614,6 +4614,8 @@ in {
|
||||
|
||||
netifaces = callPackage ../development/python-modules/netifaces { };
|
||||
|
||||
nettigo-air-monitor = callPackage ../development/python-modules/nettigo-air-monitor { };
|
||||
|
||||
networkx = callPackage ../development/python-modules/networkx { };
|
||||
|
||||
neuron-mpi = pkgs.neuron-mpi.override { inherit python; };
|
||||
|
Loading…
Reference in New Issue
Block a user