proton-core: 0.1.16 -> 0.2.0, use pytest-cov-stub, add sebtm as maintainer
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user