From 441c85b26c981cbdd357f7a51f81cd3acde2abc3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Jan 2021 15:31:21 +0100 Subject: [PATCH] python3Packages.pywizlight: init at 0.4.1 --- .../python-modules/pywizlight/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pywizlight/default.nix diff --git a/pkgs/development/python-modules/pywizlight/default.nix b/pkgs/development/python-modules/pywizlight/default.nix new file mode 100644 index 00000000000..32baa25e52e --- /dev/null +++ b/pkgs/development/python-modules/pywizlight/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, asyncio-dgram +, click +}: + +buildPythonPackage rec { + pname = "pywizlight"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "sbidy"; + repo = pname; + rev = "v${version}"; + sha256 = "0kyhyda28zbni9sjv6kvky6wlhqldl47niddgpbjsv5dlb9xvxns"; + }; + + propagatedBuildInputs = [ + asyncio-dgram + click + ]; + + # no tests are present + doCheck = false; + pythonImportsCheck = [ "pywizlight" ]; + + meta = with lib; { + description = "Python connector for WiZ light bulbs"; + homepage = "https://github.com/sbidy/pywizlight"; + 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 90f41d6edaf..a6d66a0dc85 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -445,6 +445,8 @@ in { async_generator = callPackage ../development/python-modules/async_generator { }; + asyncio-dgram = callPackage ../development/python-modules/asyncio-dgram { }; + asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { }; asyncpg = callPackage ../development/python-modules/asyncpg { }; @@ -6265,6 +6267,8 @@ in { pywinrm = callPackage ../development/python-modules/pywinrm { }; + pywizlight = callPackage ../development/python-modules/pywizlight { }; + pyxattr = let pyxattr' = callPackage ../development/python-modules/pyxattr { }; pyxattr_2 = pyxattr'.overridePythonAttrs (oldAttrs: rec {