summary refs log tree commit diff
path: root/pkgs/development/python-modules/millheater/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/millheater/default.nix')
-rw-r--r--pkgs/development/python-modules/millheater/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/millheater/default.nix b/pkgs/development/python-modules/millheater/default.nix
new file mode 100644
index 00000000000..9a329ef2651
--- /dev/null
+++ b/pkgs/development/python-modules/millheater/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, aiohttp
+, async-timeout
+, buildPythonPackage
+, cryptography
+, fetchFromGitHub
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "millheater";
+  version = "0.5.0";
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "Danielhiversen";
+    repo = "pymill";
+    rev = version;
+    sha256 = "sha256-uMvCpXz+amb5mR9ebkAit21UFYpsTkjkZRXtmcvWt8k=";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+    async-timeout
+    cryptography
+  ];
+
+  # Project has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [ "mill" ];
+
+  meta = with lib; {
+    description = "Python library for Mill heater devices";
+    homepage = "https://github.com/Danielhiversen/pymill";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}