3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #236701 from fabaff/waterfurnace-pytest-runner

python311Packages.waterfurnace: remove pytest-runner
This commit is contained in:
Fabian Affolter 2023-06-09 09:48:54 +02:00 committed by GitHub
commit 8a64294cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,26 +3,33 @@
, click , click
, fetchFromGitHub , fetchFromGitHub
, mock , mock
, pytest-runner
, pytestCheckHook , pytestCheckHook
, requests , requests
, pythonOlder
, websocket-client , websocket-client
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "waterfurnace"; pname = "waterfurnace";
version = "1.1.0"; version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sdague"; owner = "sdague";
repo = pname; repo = pname;
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf"; sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
pytest-runner
requests requests
websocket-client websocket-client
]; ];
@ -32,11 +39,14 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "waterfurnace" ]; pythonImportsCheck = [
"waterfurnace"
];
meta = with lib; { meta = with lib; {
description = "Python interface to waterfurnace geothermal systems"; description = "Python interface to waterfurnace geothermal systems";
homepage = "https://github.com/sdague/waterfurnace"; homepage = "https://github.com/sdague/waterfurnace";
changelog = "https://github.com/sdague/waterfurnace/blob/v${version}/HISTORY.rst";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };