From c45c1940c043465d90e9a1278e7b08294f93b7b1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Jun 2023 19:27:11 +0200 Subject: [PATCH] python311Packages.waterfurnace: remove pytest-runner --- .../python-modules/waterfurnace/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/waterfurnace/default.nix b/pkgs/development/python-modules/waterfurnace/default.nix index 7c57fc4d0e9e..eabd7de20ad0 100644 --- a/pkgs/development/python-modules/waterfurnace/default.nix +++ b/pkgs/development/python-modules/waterfurnace/default.nix @@ -3,26 +3,33 @@ , click , fetchFromGitHub , mock -, pytest-runner , pytestCheckHook , requests +, pythonOlder , websocket-client }: buildPythonPackage rec { pname = "waterfurnace"; version = "1.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "sdague"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf"; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner'," "" + ''; + propagatedBuildInputs = [ click - pytest-runner requests websocket-client ]; @@ -32,11 +39,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "waterfurnace" ]; + pythonImportsCheck = [ + "waterfurnace" + ]; meta = with lib; { description = "Python interface to waterfurnace geothermal systems"; homepage = "https://github.com/sdague/waterfurnace"; + changelog = "https://github.com/sdague/waterfurnace/blob/v${version}/HISTORY.rst"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };