Merge pull request #117070 from fabaff/aionotion
This commit is contained in:
commit
0cb5da8660
51
pkgs/development/python-modules/aionotion/default.nix
Normal file
51
pkgs/development/python-modules/aionotion/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -563,7 +563,7 @@
|
|||||||
"norway_air" = ps: with ps; [ pymetno ];
|
"norway_air" = ps: with ps; [ pymetno ];
|
||||||
"notify" = ps: with ps; [ ];
|
"notify" = ps: with ps; [ ];
|
||||||
"notify_events" = ps: with ps; [ ]; # missing inputs: notify-events
|
"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_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
|
"nsw_rural_fire_service_feed" = ps: with ps; [ ]; # missing inputs: aio_geojson_nsw_rfs_incidents
|
||||||
"nuheat" = ps: with ps; [ ]; # missing inputs: nuheat
|
"nuheat" = ps: with ps; [ ]; # missing inputs: nuheat
|
||||||
|
@ -250,6 +250,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"mqtt_statestream"
|
"mqtt_statestream"
|
||||||
"mullvad"
|
"mullvad"
|
||||||
"notify"
|
"notify"
|
||||||
|
"notion"
|
||||||
"number"
|
"number"
|
||||||
"ozw"
|
"ozw"
|
||||||
"panel_custom"
|
"panel_custom"
|
||||||
|
@ -302,6 +302,8 @@ in {
|
|||||||
|
|
||||||
aionotify = callPackage ../development/python-modules/aionotify { };
|
aionotify = callPackage ../development/python-modules/aionotify { };
|
||||||
|
|
||||||
|
aionotion = callPackage ../development/python-modules/aionotion { };
|
||||||
|
|
||||||
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
||||||
|
|
||||||
aiopulse = callPackage ../development/python-modules/aiopulse { };
|
aiopulse = callPackage ../development/python-modules/aiopulse { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user