From be2913c9acbaee68b66b8085f71e6ed7f79baba0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 3 Mar 2025 16:31:57 +0100 Subject: [PATCH] python312Packages.censys: migrate to pytest-cov-stub --- pkgs/development/python-modules/censys/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index e06a37721a53..62defd84ef41 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -8,6 +8,7 @@ parameterized, poetry-core, pytest-mock, + pytest-cov-stub, pytestCheckHook, pythonOlder, requests, @@ -30,14 +31,7 @@ buildPythonPackage rec { hash = "sha256-OP7+jSt4xS71Kcjy5hFzeZ5rlTPtDx22rPr3UwjI5dk="; }; - postPatch = '' - substituteInPlace pytest.ini \ - --replace-fail "--cov" "" - ''; - - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ argcomplete @@ -50,6 +44,7 @@ buildPythonPackage rec { nativeCheckInputs = [ parameterized pytest-mock + pytest-cov-stub pytestCheckHook requests-mock responses