python3Packages.proton-core: mirate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-09-28 21:26:04 +02:00
committed by GitHub
parent 1e6f018531
commit 6b80b94ab6

View File

@@ -13,7 +13,7 @@
pytest-cov-stub,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "proton-core";
version = "0.7.4";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-core";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-WTxFGua0OhgqsxgZJUI3M+WvUeYF9MsYVIa6Us7UfZ0=";
};
@@ -35,14 +35,14 @@ buildPythonPackage rec {
requests
];
pythonImportsCheck = [ "proton" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pyotp
];
pythonImportsCheck = [ "proton" ];
disabledTestPaths = [
# Single test, requires internet connection
"tests/test_alternativerouting.py"
@@ -77,4 +77,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}
})