about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymee/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pymee/default.nix')
-rw-r--r--pkgs/development/python-modules/pymee/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymee/default.nix b/pkgs/development/python-modules/pymee/default.nix
new file mode 100644
index 000000000000..18be89f33a66
--- /dev/null
+++ b/pkgs/development/python-modules/pymee/default.nix
@@ -0,0 +1,40 @@
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  setuptools,
+  aiohttp,
+  websockets,
+}:
+
+buildPythonPackage rec {
+  pname = "pymee";
+  version = "2.3.0";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "FreshlyBrewedCode";
+    repo = "pymee";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-VNKIA/1juhkn11nkW52htvE4daXJoySeEyevWbboUek=";
+  };
+
+  build-system = [ setuptools ];
+  dependencies = [
+    aiohttp
+    websockets
+  ];
+
+  pythonImportsCheck = [ "pymee" ];
+
+  # no tests
+  doCheck = false;
+
+  meta = {
+    description = "Python library to interact with homee";
+    homepage = "https://github.com/FreshlyBrewedCode/pymee";
+    changelog = "https://github.com/FreshlyBrewedCode/pymee/blob/${src.rev}/CHANGELOG.md";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ sigmanificient ];
+  };
+}