From 41a722f7c0d0bb5db0a5868301b920cce9cb41b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jan 2025 13:02:08 +0100 Subject: [PATCH] python312Packages.pyrainbird: migrate to pytest-cov-stub --- pkgs/development/python-modules/pyrainbird/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyrainbird/default.nix b/pkgs/development/python-modules/pyrainbird/default.nix index 51e09fae5138..ba3bd8c2eee9 100644 --- a/pkgs/development/python-modules/pyrainbird/default.nix +++ b/pkgs/development/python-modules/pyrainbird/default.nix @@ -10,6 +10,7 @@ pycryptodome, pytest-aiohttp, pytest-asyncio, + pytest-cov-stub, pytest-golden, pytest-mock, pytestCheckHook, @@ -36,11 +37,6 @@ buildPythonPackage rec { hash = "sha256-CcoZZ60PItqy0bCc36WfyNF9Fc28aHwQ6hhnY41lBNg="; }; - postPatch = '' - substituteInPlace pytest.ini \ - --replace-fail "--cov=pyrainbird --cov-report=term-missing" "" - ''; - build-system = [ setuptools ]; dependencies = [ @@ -60,6 +56,7 @@ buildPythonPackage rec { parameterized pytest-aiohttp pytest-asyncio + pytest-cov-stub pytest-golden pytest-mock pytestCheckHook @@ -73,7 +70,7 @@ buildPythonPackage rec { description = "Module to interact with Rainbird controllers"; homepage = "https://github.com/allenporter/pyrainbird"; changelog = "https://github.com/allenporter/pyrainbird/releases/tag/${version}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }