Merge pull request #117070 from fabaff/aionotion

This commit is contained in:
Martin Weinelt 2021-03-21 00:58:36 +01:00 committed by GitHub
commit 0cb5da8660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aionotion";
version = "3.0.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1ydrazg7gcwf53006n1fvxh9zm77by6zi36haq1bmy5skqccyiki";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytest-aiohttp
pytest-asyncio
pytest-cov
pytestCheckHook
];
disabledTestPaths = [ "examples" ];
pythonImportsCheck = [ "aionotion" ];
meta = with lib; {
description = "Python library for Notion Home Monitoring";
homepage = "https://github.com/bachya/aionotion";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -563,7 +563,7 @@
"norway_air" = ps: with ps; [ pymetno ];
"notify" = ps: with ps; [ ];
"notify_events" = ps: with ps; [ ]; # missing inputs: notify-events
"notion" = ps: with ps; [ ]; # missing inputs: aionotion
"notion" = ps: with ps; [ aionotion ];
"nsw_fuel_station" = ps: with ps; [ ]; # missing inputs: nsw-fuel-api-client
"nsw_rural_fire_service_feed" = ps: with ps; [ ]; # missing inputs: aio_geojson_nsw_rfs_incidents
"nuheat" = ps: with ps; [ ]; # missing inputs: nuheat

View File

@ -250,6 +250,7 @@ in with py.pkgs; buildPythonApplication rec {
"mqtt_statestream"
"mullvad"
"notify"
"notion"
"number"
"ozw"
"panel_custom"

View File

@ -302,6 +302,8 @@ in {
aionotify = callPackage ../development/python-modules/aionotify { };
aionotion = callPackage ../development/python-modules/aionotion { };
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
aiopulse = callPackage ../development/python-modules/aiopulse { };