about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiolookin
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-10-24 22:29:26 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-10-24 22:36:30 +0200
commit437bf811a5ee900c5fdc92d60097ad1dc3991436 (patch)
treed02f49732239661e8765e2fd279ad96f3cd3cf66 /pkgs/development/python-modules/aiolookin
parente5e3f8777154a14f96c53038fd420dbae2e13673 (diff)
python3Packages.aiolookin: init at 0.0.3
Diffstat (limited to 'pkgs/development/python-modules/aiolookin')
-rw-r--r--pkgs/development/python-modules/aiolookin/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiolookin/default.nix b/pkgs/development/python-modules/aiolookin/default.nix
new file mode 100644
index 0000000000000..a81c817e4e071
--- /dev/null
+++ b/pkgs/development/python-modules/aiolookin/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, faker
+, fetchFromGitHub
+, pytest-aiohttp
+, pytest-mock
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "aiolookin";
+  version = "0.0.3";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchFromGitHub {
+    owner = "ANMalko";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "15mdvrzvqpdvg9zkczzgzzc5v2ri3v5f17000mhxill1nhirxhqx";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  checkInputs = [
+    faker
+    pytest-aiohttp
+    pytest-mock
+    pytestCheckHook
+  ];
+
+  disabledTests = [
+    # Not all tests are ready yet
+    "test_successful"
+  ];
+
+  pythonImportsCheck = [
+    "aiolookin"
+  ];
+
+  meta = with lib; {
+    description = "Python client for interacting with LOOKin devices";
+    homepage = "https://github.com/ANMalko/aiolookin";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}