2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
keyring,
|
|
|
|
proton-core,
|
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildPythonPackage rec {
|
2024-01-02 11:29:13 +00:00
|
|
|
pname = "proton-keyring-linux";
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "0.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ProtonVPN";
|
|
|
|
repo = "python-proton-keyring-linux";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-23 06:41:50 +00:00
|
|
|
hash = "sha256-feIgRC0U7d96gFcmHqRF3/8k/bsxlPJs1/K+ki7uXys=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
keyring
|
|
|
|
proton-core
|
|
|
|
];
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"proton.keyring_linux.core"
|
|
|
|
"proton.keyring_linux"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-cov-stub
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "ProtonVPN core component to access Linux's keyring";
|
|
|
|
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ sebtm ];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|