summary refs log tree commit diff
path: root/pkgs/development/python-modules/heatzypy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/heatzypy/default.nix')
-rw-r--r--pkgs/development/python-modules/heatzypy/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/heatzypy/default.nix b/pkgs/development/python-modules/heatzypy/default.nix
index 7cb1daa10cf..1a71c5d1793 100644
--- a/pkgs/development/python-modules/heatzypy/default.nix
+++ b/pkgs/development/python-modules/heatzypy/default.nix
@@ -5,28 +5,34 @@
 , requests
 , pytestCheckHook
 , pythonOlder
+, setuptools
+, wheel
 }:
 
 buildPythonPackage rec {
   pname = "heatzypy";
-  version = "2.1.5";
-  format = "setuptools";
+  version = "2.1.9";
+  pyproject = true;
 
-  disabled = pythonOlder "3.8";
+  disabled = pythonOlder "3.11";
 
   src = fetchFromGitHub {
     owner = "Cyr-ius";
-    repo = pname;
+    repo = "heatzypy";
     rev = "refs/tags/${version}";
-    hash = "sha256-Z60apquRzhkPbxgGKgDswtW9GUXGt9MbdAsh3Yh31b0=";
+    hash = "sha256-O2HtCaNtBvjhjlSXLRhEuilI8z7nGgzFa8USYiHfZ+E=";
   };
 
   postPatch = ''
-    # https://github.com/Cyr-ius/heatzypy/issues/7
-    substituteInPlace setup.py \
-      --replace 'version="replace_by_workflow"' 'version="${version}"'
+    substituteInPlace pyproject.toml \
+      --replace "replace_by_workflow" "${version}"
   '';
 
+  nativeBuildInputs = [
+    setuptools
+    wheel
+  ];
+
   propagatedBuildInputs = [
     aiohttp
     requests
@@ -40,8 +46,9 @@ buildPythonPackage rec {
   ];
 
   meta = with lib; {
-    description = "Python module to interact with Heatzy devices";
+    description = "Module to interact with Heatzy devices";
     homepage = "https://github.com/Cyr-ius/heatzypy";
+    changelog = "https://github.com/cyr-ius/heatzypy/releases/tag/${version}";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ fab ];
   };