Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitea,
4 gdk-pixbuf,
5 gobject-introspection,
6 gtk3,
7 libnotify,
8 libsecret,
9 networkmanager,
10 python3Packages,
11 wrapGAppsHook3,
12}:
13
14python3Packages.buildPythonApplication rec {
15 pname = "eduvpn-client";
16 version = "4.5.1";
17 format = "pyproject";
18
19 src = fetchFromGitea {
20 domain = "codeberg.org";
21 owner = "eduVPN";
22 repo = "linux-app";
23 rev = version;
24 hash = "sha256-lDmPDM3BEiZ97m8jEtYrpmVrk0D7x01iKxOe/09T0zY=";
25 };
26
27 nativeBuildInputs = [
28 gdk-pixbuf
29 gobject-introspection
30 wrapGAppsHook3
31 ];
32
33 buildInputs = [
34 gtk3
35 libnotify
36 libsecret
37 networkmanager
38 ];
39
40 propagatedBuildInputs = with python3Packages; [
41 eduvpn-common
42 pygobject3
43 setuptools
44 ];
45
46 postInstall = ''
47 ln -s $out/${python3Packages.python.sitePackages}/eduvpn/data/share/ $out/share
48 '';
49
50 checkInputs = with python3Packages; [
51 pytestCheckHook
52 ];
53
54 meta = {
55 changelog = "https://codeberg.org/eduVPN/linux-app/raw/tag/${version}/CHANGES.md";
56 description = "Linux client for eduVPN";
57 homepage = "https://codeberg.org/eduVPN/linux-app";
58 license = lib.licenses.gpl3Plus;
59 mainProgram = "eduvpn-gui";
60 maintainers = with lib.maintainers; [
61 benneti
62 jwijenbergh
63 ];
64 platforms = lib.platforms.linux;
65 };
66}