summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiolip
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-11 15:21:08 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-11 15:23:43 +0200
commit76019785f6ca319f97b39084f7a39534e41cc69b (patch)
treef013e9f153c50f27c7932b2c959543c819b14c39 /pkgs/development/python-modules/aiolip
parent089908b9db074b5103cda022f25b6689c84ec0dd (diff)
python3Packages.aiolip: init at 1.1.4
Diffstat (limited to 'pkgs/development/python-modules/aiolip')
-rw-r--r--pkgs/development/python-modules/aiolip/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiolip/default.nix b/pkgs/development/python-modules/aiolip/default.nix
new file mode 100644
index 0000000000000..1db1ae1cf03d5
--- /dev/null
+++ b/pkgs/development/python-modules/aiolip/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "aiolip";
+  version = "1.1.4";
+  disabled = pythonOlder "3.5";
+
+  src = fetchFromGitHub {
+    owner = "bdraco";
+    repo = pname;
+    rev = version;
+    sha256 = "1f8mlvbnfcn3sigsmjdpdpgxmnbvcjhfr7lzch61i8sy25dgakji";
+  };
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    substituteInPlace setup.py --replace "'pytest-runner'," ""
+  '';
+
+  pythonImportsCheck = [ "aiolip" ];
+
+  meta = with lib; {
+    description = "Python module for the Lutron Integration Protocol";
+    homepage = "https://github.com/bdraco/aiolip";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}