diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-03-19 06:46:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 06:46:20 +0100 |
commit | 69cc0a5ba54f17f773c932694c56208bd487c771 (patch) | |
tree | 9cfcd590a09328e4009a422ba42d2d927a9f5338 /pkgs | |
parent | f2277ab5c70a503f6c896b4630d214b956c9acbb (diff) | |
parent | 63a3c173226d093b6d98dcd75d2240a347ede32f (diff) |
Merge pull request #296997 from fabaff/aioraven
python311Packages.aioraven: init at 0.5.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/aioraven/default.nix | 53 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/component-packages.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 58 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/aioraven/default.nix b/pkgs/development/python-modules/aioraven/default.nix new file mode 100644 index 0000000000000..227e0b62becf7 --- /dev/null +++ b/pkgs/development/python-modules/aioraven/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +, iso4217 +, pyserial +, pyserial-asyncio +, pytestCheckHook +, pytest-asyncio +}: + +buildPythonPackage rec { + pname = "aioraven"; + version = "0.5.2"; + pyproject = true; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "cottsay"; + repo = "aioraven"; + rev = "refs/tags/${version}"; + hash = "sha256-ysmIxWy+gufX5oUfQ7Zw5xv0t/yxihFB+eAdYAWAmXs="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + iso4217 + pyserial + pyserial-asyncio + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aioraven" + ]; + + meta = with lib; { + description = "Module for communication with RAVEn devices"; + homepage = "https://github.com/cottsay/aioraven"; + changelog = "https://github.com/cottsay/aioraven/blob/${version}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 056e17a2be0d2..ff4150806f93d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4026,12 +4026,13 @@ aiohttp-cors aiohttp-fast-url-dispatcher aiohttp-zlib-ng + aioraven fnv-hash-fast psutil-home-assistant pyserial pyudev sqlalchemy - ]; # missing inputs: aioraven + ]; "rainmachine" = ps: with ps; [ regenmaschine ]; @@ -6396,6 +6397,7 @@ "radiotherm" "rainbird" "rainforest_eagle" + "rainforest_raven" "rainmachine" "random" "rapt_ble" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bcbf87539811c..28cb5bf1700a5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -361,6 +361,8 @@ self: super: with self; { aioquic = callPackage ../development/python-modules/aioquic { }; + aioraven = callPackage ../development/python-modules/aioraven { }; + aiorecollect = callPackage ../development/python-modules/aiorecollect { }; aioredis = callPackage ../development/python-modules/aioredis { }; |