From 6795ced0171b9175caf18554bcfe39d29130e2f3 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Thu, 5 Sep 2024 19:13:04 +0200 Subject: [PATCH] proton-vpn-logger: use pytest-cov-stub, add sebtm as maintainer --- .../proton-vpn-logger/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/proton-vpn-logger/default.nix b/pkgs/development/python-modules/proton-vpn-logger/default.nix index d492ed146eb7..7211293b99c8 100644 --- a/pkgs/development/python-modules/proton-vpn-logger/default.nix +++ b/pkgs/development/python-modules/proton-vpn-logger/default.nix @@ -5,6 +5,7 @@ setuptools, proton-core, pytestCheckHook, + pytest-cov-stub, }: buildPythonPackage rec { @@ -23,24 +24,22 @@ buildPythonPackage rec { propagatedBuildInputs = [ proton-core ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace-fail "--cov=proton/vpn/logging/ --cov-report html --cov-report term" "" - ''; - pythonImportsCheck = [ "proton.vpn.logging" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; preCheck = '' # Needed for Permission denied: '/homeless-shelter' export HOME=$(mktemp -d) ''; - meta = with lib; { + meta = { description = "General purpose logging package for the entire ProtonVPN Linux client"; homepage = "https://github.com/ProtonVPN/python-proton-vpn-logger"; - license = licenses.gpl3Only; - maintainers = [ ]; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ sebtm ]; }; }