ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
47 lines
906 B
Nix
47 lines
906 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, distro
|
|
, jinja2
|
|
, keyring
|
|
, proton-client
|
|
, pygobject3
|
|
, pyxdg
|
|
, systemd
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "protonvpn-nm-lib";
|
|
version = "3.5.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProtonVPN";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-E75toza++l5UFdOLGgolH8pL5xvoUkLE7u+8L5RDFbI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
distro
|
|
jinja2
|
|
keyring
|
|
proton-client
|
|
pygobject3
|
|
pyxdg
|
|
systemd
|
|
];
|
|
|
|
# Project has a dummy test.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "protonvpn_nm_lib" ];
|
|
|
|
meta = with lib; {
|
|
description = "ProtonVPN NetworkManager Library intended for every ProtonVPN service user";
|
|
homepage = "https://github.com/ProtonVPN/protonvpn-nm-lib";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
};
|
|
}
|