about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyaprilaire/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyaprilaire/default.nix')
-rw-r--r--pkgs/development/python-modules/pyaprilaire/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyaprilaire/default.nix b/pkgs/development/python-modules/pyaprilaire/default.nix
new file mode 100644
index 0000000000000..6c99394c31a39
--- /dev/null
+++ b/pkgs/development/python-modules/pyaprilaire/default.nix
@@ -0,0 +1,41 @@
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytestCheckHook,
+  crc,
+  setuptools,
+  pytest-asyncio,
+}:
+
+buildPythonPackage rec {
+  pname = "pyaprilaire";
+  version = "0.7.4";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "chamberlain2007";
+    repo = "pyaprilaire";
+    rev = "refs/tags/${version}";
+    hash = "sha256-+/yQO0JF2nkxaM71iNj6ODB8raM9s4qiLLi6/borcr4=";
+  };
+
+  build-system = [ setuptools ];
+
+  dependencies = [ crc ];
+
+  pythonImportsCheck = [ "pyaprilaire" ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+    pytest-asyncio
+  ];
+
+  meta = {
+    changelog = "https://github.com/chamberlain2007/pyaprilaire/releases/tag/${version}";
+    description = "Python library for interacting with Aprilaire thermostats.";
+    homepage = "https://github.com/chamberlain2007/pyaprilaire";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ pyrox0 ];
+  };
+}