diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-21 19:49:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 19:49:34 +0100 |
commit | 39b25bbbb58966643c1d2ba1d05e51cba1f58084 (patch) | |
tree | d88f3374ec0c40777b60dcf459f33f2ead1fde85 | |
parent | 1db57db7249f12b68b6000342edd9ff67c18eb71 (diff) | |
parent | 6b19408a70fb22a26c0385cd9c6c43f246402bda (diff) |
Merge pull request #110368 from fabaff/python-wink
-rw-r--r-- | pkgs/development/python-modules/python-wink/default.nix | 28 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/component-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 31 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-wink/default.nix b/pkgs/development/python-modules/python-wink/default.nix new file mode 100644 index 000000000000..fa0dc670133e --- /dev/null +++ b/pkgs/development/python-modules/python-wink/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "python-wink"; + version = "1.10.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "1r6qabnqxyy3llnj10z60d4w9pg2zabysl3l7znpy1adss4ywxl0"; + }; + + propagatedBuildInputs = [ requests ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "pywink" ]; + + meta = with lib; { + description = "Python implementation of the Wink API"; + homepage = "https://github.com/python-wink/python-wink"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 4f024ef7bc2c..b3d2247cb356 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -927,7 +927,7 @@ "whois" = ps: with ps; [ python-whois ]; "wiffi" = ps: with ps; [ ]; # missing inputs: wiffi "wilight" = ps: with ps; [ pywilight ]; - "wink" = ps: with ps; [ aiohttp-cors pubnubsub-handler ]; # missing inputs: python-wink + "wink" = ps: with ps; [ aiohttp-cors pubnubsub-handler python-wink ]; "wirelesstag" = ps: with ps; [ ]; # missing inputs: wirelesstagpy "withings" = ps: with ps; [ aiohttp-cors ]; # missing inputs: withings-api "wled" = ps: with ps; [ wled ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e157a05713e1..5744c8db921a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6349,6 +6349,8 @@ in { python-wifi = callPackage ../development/python-modules/python-wifi { }; + python-wink = callPackage ../development/python-modules/python-wink { }; + python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { }; pyeverlights = callPackage ../development/python-modules/pyeverlights { }; |