summary refs log tree commit diff
path: root/pkgs/development/python-modules/pylutron-caseta/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-11 15:21:56 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-11 15:23:43 +0200
commitd93a794679e8068093bc9f3f3739c2f32c40a849 (patch)
treead79a45182b8aa2a40f8b254bc588630574f550c /pkgs/development/python-modules/pylutron-caseta/default.nix
parent76019785f6ca319f97b39084f7a39534e41cc69b (diff)
downloadnixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar.gz
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar.bz2
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar.lz
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar.xz
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.tar.zst
nixpkgs-d93a794679e8068093bc9f3f3739c2f32c40a849.zip
python3Packages.pylutron-caseta: init at 0.9.0
Diffstat (limited to 'pkgs/development/python-modules/pylutron-caseta/default.nix')
-rw-r--r--pkgs/development/python-modules/pylutron-caseta/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pylutron-caseta/default.nix b/pkgs/development/python-modules/pylutron-caseta/default.nix
new file mode 100644
index 00000000000..aa2182c176d
--- /dev/null
+++ b/pkgs/development/python-modules/pylutron-caseta/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, cryptography
+, fetchFromGitHub
+, pytest-asyncio
+, pytest-sugar
+, pytest-timeout
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "pylutron-caseta";
+  version = "0.9.0";
+  disabled = pythonOlder "3.5";
+
+  src = fetchFromGitHub {
+    owner = "gurumitts";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "07mz4hn0455qmfqs4xcqlhbf3qvrnmifd0vzpcqlqaqcn009iahq";
+  };
+
+  propagatedBuildInputs = [
+    cryptography
+  ];
+
+  checkInputs = [
+    pytest-asyncio
+    pytest-sugar
+    pytest-timeout
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "pylutron_caseta" ];
+
+  meta = with lib; {
+    description = "Python module o control Lutron Caseta devices";
+    homepage = "https://github.com/gurumitts/pylutron-caseta";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}