depot/third_party/nixpkgs/pkgs/development/python-modules/proton-keyring-linux/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
900 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
keyring,
proton-core,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "proton-keyring-linux";
version = "0.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-keyring-linux";
rev = "refs/tags/v${version}";
hash = "sha256-c2wdbd8Hkz2hF9zYMy4/V/W6uZRItz7tWqLJqTsJoHU=";
};
build-system = [ setuptools ];
dependencies = [
keyring
proton-core
];
pythonImportsCheck = [ "proton.keyring_linux.core" ];
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 ];
};
}