Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.aioguardian: init at 1.0.4 #108673

Merged
merged 2 commits into from Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
62 changes: 62 additions & 0 deletions pkgs/development/python-modules/aioguardian/default.nix
@@ -0,0 +1,62 @@
{ lib
, aiohttp
, async-timeout
, asyncio-dgram
, asynctest
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonAtLeast
, voluptuous
}:

buildPythonPackage rec {
pname = "aioguardian";
version = "1.0.4";
disabled = pythonAtLeast "3.9";

src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1cbxcsxh9c8r2zx3lsjdns26sm2qmlwnqgah2sfzbgp1lay23vvq";
};

format = "pyproject";

nativeBuildInputs = [ poetry ];

propagatedBuildInputs = [
aiohttp
async-timeout
asyncio-dgram
voluptuous
];

checkInputs = [
asyncio-dgram
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];

# Ignore the examples as they are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "aioguardian" ];

meta = with lib; {
description = " Python library to interact with Elexa Guardian devices";
longDescription = ''
aioguardian is a Pytho3, asyncio-focused library for interacting with the
Guardian line of water valves and sensors from Elexa.
'';
homepage = "https://github.com/bachya/aioguardian";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -329,7 +329,7 @@
"growatt_server" = ps: with ps; [ ]; # missing inputs: growattServer
"gstreamer" = ps: with ps; [ ]; # missing inputs: gstreamer-player
"gtfs" = ps: with ps; [ ]; # missing inputs: pygtfs
"guardian" = ps: with ps; [ ]; # missing inputs: aioguardian
"guardian" = ps: with ps; [ aioguardian ];
"habitica" = ps: with ps; [ ]; # missing inputs: habitipy
"hangouts" = ps: with ps; [ ]; # missing inputs: hangups
"harman_kardon_avr" = ps: with ps; [ ]; # missing inputs: hkavr
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -209,6 +209,8 @@ in {

aioftp = callPackage ../development/python-modules/aioftp { };

aioguardian = callPackage ../development/python-modules/aioguardian { };

aioh2 = callPackage ../development/python-modules/aioh2 { };

aioharmony = callPackage ../development/python-modules/aioharmony { };
Expand Down