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

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 ];
};
}