depot/third_party/nixpkgs/pkgs/development/python-modules/proton-keyring-linux/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

47 lines
933 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
keyring,
proton-core,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "proton-keyring-linux";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-keyring-linux";
rev = "refs/tags/v${version}";
hash = "sha256-feIgRC0U7d96gFcmHqRF3/8k/bsxlPJs1/K+ki7uXys=";
};
build-system = [ setuptools ];
dependencies = [
keyring
proton-core
];
pythonImportsCheck = [
"proton.keyring_linux.core"
"proton.keyring_linux"
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
meta = {
description = "ProtonVPN core component to access Linux's keyring";
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ sebtm ];
};
}