summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiolifx
diff options
context:
space:
mode:
authorNetix (Espinet François) <dev.espinetfrancois@gmail.com>2019-02-13 20:15:49 +0100
committerNetix (Espinet François) <dev.espinetfrancois@gmail.com>2019-02-14 22:00:25 +0100
commit22069991d04a03f3340e415f4eafebc6f3130fa6 (patch)
tree5b149ca689aea864dbe6c619f0b5489aad24f2c4 /pkgs/development/python-modules/aiolifx
parent097746fec2b60a48c4a12e25717848bf4203761e (diff)
downloadnixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar.gz
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar.bz2
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar.lz
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar.xz
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.tar.zst
nixpkgs-22069991d04a03f3340e415f4eafebc6f3130fa6.zip
pythonPackages.aiolifx: init at 0.6.7
Aiolifx package provides ability to control lifx (https://www.lifx.com)
light fixtures using python. The original need was to use it with
the home-assistant package, specifically the "lifx" component.
Diffstat (limited to 'pkgs/development/python-modules/aiolifx')
-rw-r--r--pkgs/development/python-modules/aiolifx/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiolifx/default.nix b/pkgs/development/python-modules/aiolifx/default.nix
new file mode 100644
index 00000000000..b7855bee72d
--- /dev/null
+++ b/pkgs/development/python-modules/aiolifx/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, fetchPypi
+, buildPythonPackage
+, isPy3k
+, ifaddr
+, bitstring
+}:
+
+buildPythonPackage rec {
+  pname = "aiolifx";
+  version = "0.6.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "cf53c9faea6eee25a466e73eef1753b82a75c7497648149c19c15342df2678f2";
+  };
+
+  # tests are not implemented
+  doCheck = false;
+
+  disabled = !isPy3k;
+
+  propagatedBuildInputs = [ bitstring ifaddr ];
+
+  meta = with lib; {
+    homepage = http://github.com/frawau/aiolifx;
+    license = licenses.mit;
+    description = "API for local communication with LIFX devices over a LAN with asyncio";
+    maintainers = with maintainers; [ netixx ];
+  };
+}