From 571da80ef3841af6b7e9d5ba7fa26923172420bb Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Thu, 5 Sep 2024 19:17:36 +0200 Subject: [PATCH] proton-core: 0.1.16 -> 0.2.0, use pytest-cov-stub, add sebtm as maintainer --- .../python-modules/proton-core/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/proton-core/default.nix b/pkgs/development/python-modules/proton-core/default.nix index c19ef3b31d17..d42dc2c8954f 100644 --- a/pkgs/development/python-modules/proton-core/default.nix +++ b/pkgs/development/python-modules/proton-core/default.nix @@ -9,18 +9,20 @@ python-gnupg, requests, pytestCheckHook, + pyotp, + pytest-cov-stub, }: buildPythonPackage rec { pname = "proton-core"; - version = "0.1.16"; + version = "0.2.0"; pyproject = true; src = fetchFromGitHub { owner = "ProtonVPN"; repo = "python-proton-core"; rev = "refs/tags/v${version}"; - hash = "sha256-072XuHvgWludlFwp/tqLpuAU89vzifFhwQ01FuiCoL8="; + hash = "sha256-IiKmtgcCSe2q3qaNuUSaC/D/vSQzVq7w8VN2Xq81+tQ="; }; nativeBuildInputs = [ setuptools ]; @@ -33,14 +35,13 @@ buildPythonPackage rec { requests ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=proton --cov-report html --cov-report term" "" - ''; - pythonImportsCheck = [ "proton" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + pyotp + ]; disabledTestPaths = [ # Single test, requires internet connection @@ -68,6 +69,6 @@ buildPythonPackage rec { description = "Core logic used by the other Proton components"; homepage = "https://github.com/ProtonVPN/python-proton-core"; license = lib.licenses.gpl3Only; - maintainers = [ ]; + maintainers = with lib.maintainers; [ sebtm ]; }; }