From 3d69d4cdcc48638a3849a795bcc3c0baee08e36a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Nov 2022 14:34:42 +0100 Subject: [PATCH] python310Packages.heatzypy: set version --- pkgs/development/python-modules/heatzypy/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/heatzypy/default.nix b/pkgs/development/python-modules/heatzypy/default.nix index 0bd151e236af..24b351494303 100644 --- a/pkgs/development/python-modules/heatzypy/default.nix +++ b/pkgs/development/python-modules/heatzypy/default.nix @@ -18,15 +18,21 @@ buildPythonPackage rec { owner = "Cyr-ius"; repo = pname; rev = "refs/tags/${version}"; - sha256 = "sha256-4/v0xodpJzVi6/ciW5icqDFGCtBFKtGoMB92CknH9xw="; + hash = "sha256-4/v0xodpJzVi6/ciW5icqDFGCtBFKtGoMB92CknH9xw="; }; + postPatch = '' + # https://github.com/Cyr-ius/heatzypy/issues/7 + substituteInPlace setup.py \ + --replace 'version="replace_by_workflow"' 'version="${version}"' + ''; + propagatedBuildInputs = [ aiohttp requests ]; - # Project has no tests + # Module has no tests doCheck = false; pythonImportsCheck = [