Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 46 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 proton-core, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "proton-vpn-logger"; 12 version = "0.2.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "ProtonVPN"; 17 repo = "python-proton-vpn-logger"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-/LfMjyTs/EusgnKEQugsdJzqDZBvaAhbsTUVLDCRw0I="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 propagatedBuildInputs = [ proton-core ]; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace-fail "--cov=proton/vpn/logging/ --cov-report html --cov-report term" "" 29 ''; 30 31 pythonImportsCheck = [ "proton.vpn.logging" ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 preCheck = '' 36 # Needed for Permission denied: '/homeless-shelter' 37 export HOME=$(mktemp -d) 38 ''; 39 40 meta = with lib; { 41 description = "General purpose logging package for the entire ProtonVPN Linux client"; 42 homepage = "https://github.com/ProtonVPN/python-proton-vpn-logger"; 43 license = licenses.gpl3Only; 44 maintainers = with maintainers; [ wolfangaukang ]; 45 }; 46}