159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
47 lines
988 B
Nix
47 lines
988 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
proton-core,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "proton-vpn-logger";
|
|
version = "0.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProtonVPN";
|
|
repo = "python-proton-vpn-logger";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/LfMjyTs/EusgnKEQugsdJzqDZBvaAhbsTUVLDCRw0I=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [ proton-core ];
|
|
|
|
pythonImportsCheck = [ "proton.vpn.logging" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
preCheck = ''
|
|
# Needed for Permission denied: '/homeless-shelter'
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = {
|
|
description = "General purpose logging package for the entire ProtonVPN Linux client";
|
|
homepage = "https://github.com/ProtonVPN/python-proton-vpn-logger";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ sebtm ];
|
|
};
|
|
}
|