From 2803b68946db1775a56bde197d870d2a7a2a7bb5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 4 Oct 2021 09:12:22 +0200 Subject: [PATCH] python3Packages.whirlpool-sixth-sense: init at unstable-2021-08-22 --- .../whirlpool-sixth-sense/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/whirlpool-sixth-sense/default.nix diff --git a/pkgs/development/python-modules/whirlpool-sixth-sense/default.nix b/pkgs/development/python-modules/whirlpool-sixth-sense/default.nix new file mode 100644 index 000000000000..3b973efc4fd2 --- /dev/null +++ b/pkgs/development/python-modules/whirlpool-sixth-sense/default.nix @@ -0,0 +1,47 @@ +{ lib +, aioconsole +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytest-mock +, pytestCheckHook +, pythonOlder +, websockets +}: + +buildPythonPackage rec { + pname = "whirlpool-sixth-sense"; + version = "unstable-2021-08-22"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "abmantis"; + repo = pname; + rev = "ca336173d3b5d9a13e7e4b0fa7ca998a9b71d729"; + sha256 = "0b7bqg4h9q9rk3hv2im903xn7jgfyf36kcv31v96ap75yrvip6wa"; + }; + + propagatedBuildInputs = [ + aioconsole + aiohttp + websockets + ]; + + checkInputs = [ + pytest-asyncio + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "whirlpool" ]; + + meta = with lib; { + description = "Python library for Whirlpool 6th Sense appliances"; + homepage = "https://github.com/abmantis/whirlpool-sixth-sense/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 648a94ff4211..ef803c9747e7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9616,6 +9616,8 @@ in { whichcraft = callPackage ../development/python-modules/whichcraft { }; + whirlpool-sixth-sense = callPackage ../development/python-modules/whirlpool-sixth-sense { }; + whisper = callPackage ../development/python-modules/whisper { }; whitenoise = callPackage ../development/python-modules/whitenoise { };