From 6520ef039d4f3a96a4bf9b4eb84639fd18ff3ff7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Aug 2022 12:45:47 +0200 Subject: [PATCH] python310Packages.aioairq: init at 0.1.1 --- .../python-modules/aioairq/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/aioairq/default.nix diff --git a/pkgs/development/python-modules/aioairq/default.nix b/pkgs/development/python-modules/aioairq/default.nix new file mode 100644 index 000000000000..4a802eb35618 --- /dev/null +++ b/pkgs/development/python-modules/aioairq/default.nix @@ -0,0 +1,41 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pycryptodome +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aioairq"; + version = "0.1.1"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "CorantGmbH"; + repo = pname; + rev = "v${version}"; + hash = "sha256-BvesFiXiVlgfaffWfNcP1K9XUOL2qU8F/sdvRKNcuS4="; + }; + + propagatedBuildInputs = [ + aiohttp + pycryptodome + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "aioairq" + ]; + + meta = with lib; { + description = "Library to retrieve data from air-Q devices"; + homepage = "https://github.com/CorantGmbH/aioairq"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cb622c1c02a..069780e34878 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -257,6 +257,8 @@ in { aioairzone = callPackage ../development/python-modules/aioairzone { }; + aioairq = callPackage ../development/python-modules/aioairq { }; + aioaladdinconnect = callPackage ../development/python-modules/aioaladdinconnect { }; aioambient = callPackage ../development/python-modules/aioambient { };