From 5f37311137264da67f7d27749ff5fa39b10d4c50 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Thu, 5 Sep 2024 19:15:24 +0200 Subject: [PATCH] proton-vpn-killswitch: use pytest-cov-stub, add sebtm as maintainer --- .../proton-vpn-killswitch/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/proton-vpn-killswitch/default.nix b/pkgs/development/python-modules/proton-vpn-killswitch/default.nix index c2ed563df880..65633318496e 100644 --- a/pkgs/development/python-modules/proton-vpn-killswitch/default.nix +++ b/pkgs/development/python-modules/proton-vpn-killswitch/default.nix @@ -5,6 +5,7 @@ setuptools, proton-core, pytestCheckHook, + pytest-cov-stub, }: buildPythonPackage rec { @@ -23,19 +24,17 @@ buildPythonPackage rec { propagatedBuildInputs = [ proton-core ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=proton --cov-report=html --cov-report=term" "" - ''; - pythonImportsCheck = [ "proton.vpn.killswitch.interface" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; - meta = with lib; { + meta = { description = "Defines the ProtonVPN kill switch interface"; homepage = "https://github.com/ProtonVPN/python-proton-vpn-killswitch"; - license = licenses.gpl3Only; - maintainers = [ ]; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ sebtm ]; }; }