summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-21 19:49:34 +0100
committerGitHub <noreply@github.com>2021-01-21 19:49:34 +0100
commit39b25bbbb58966643c1d2ba1d05e51cba1f58084 (patch)
treed88f3374ec0c40777b60dcf459f33f2ead1fde85
parent1db57db7249f12b68b6000342edd9ff67c18eb71 (diff)
parent6b19408a70fb22a26c0385cd9c6c43f246402bda (diff)
downloadnixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar.gz
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar.bz2
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar.lz
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar.xz
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.tar.zst
nixpkgs-39b25bbbb58966643c1d2ba1d05e51cba1f58084.zip
Merge pull request #110368 from fabaff/python-wink
-rw-r--r--pkgs/development/python-modules/python-wink/default.nix28
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix2
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 00000000000..fa0dc670133
--- /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 4f024ef7bc2..b3d2247cb35 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 e157a05713e..5744c8db921 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 { };