about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nuheat/default.nix
diff options
context:
space:
mode:
authorKasper Gałkowski <k@galkowski.xyz>2023-03-14 17:03:07 +0100
committerKasper Gałkowski <k@galkowski.xyz>2023-03-14 17:07:39 +0100
commite5eb0322a2f7c235c64662b4dce720b62111fc88 (patch)
tree71ebb5b481e62b15362414a03c7f3fe1bfc1e67c /pkgs/development/python-modules/nuheat/default.nix
parent97ec9764a4c2a23eef5c505183c858a3ae80606c (diff)
parent9e91539bb454af74b2e8f012e1aae08cb8abd9ff (diff)
merge master
Diffstat (limited to 'pkgs/development/python-modules/nuheat/default.nix')
-rw-r--r--pkgs/development/python-modules/nuheat/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nuheat/default.nix b/pkgs/development/python-modules/nuheat/default.nix
new file mode 100644
index 0000000000000..97607ceab3dcf
--- /dev/null
+++ b/pkgs/development/python-modules/nuheat/default.nix
@@ -0,0 +1,48 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, mock
+, parameterized
+, pytestCheckHook
+, pythonOlder
+, requests
+, responses
+}:
+
+buildPythonPackage rec {
+  pname = "nuheat";
+  version = "1.0.1";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "broox";
+    repo = "python-nuheat";
+    rev = "refs/tags/${version}";
+    hash = "sha256-EsPuwILfKc1Bpvu0Qos7yooC3dBaqf46lWhiSZdu3sc=";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  nativeCheckInputs = [
+    mock
+    parameterized
+    pytestCheckHook
+    responses
+  ];
+
+  pythonImportsCheck = [
+    "nuheat"
+  ];
+
+  meta = with lib; {
+    description = "Library to interact with NuHeat Signature and Mapei Mapeheat radiant floor thermostats";
+    homepage = "https://github.com/broox/python-nuheat";
+    changelog = "https://github.com/broox/python-nuheat/releases/tag/${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}