6 python3.pkgs.buildPythonApplication rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-G/S1Rrm+suiy1CTTFLcBGt/QhARL7puHgR65nCxodH0=";
18 sourceRoot = "source/src";
21 # Also disables update check
22 ./signal_files_as_env_vars.patch
25 propagatedBuildInputs = with python3.pkgs; [
28 google-api-python-client
37 # Use XDG-ish dirs for configuration. These would otherwise be in the gam
40 # Using --run as `makeWapper` evaluates variables for --set and --set-default
41 # at build time and then single quotes the vars in the wrapper, thus they
42 # wouldn't get expanded. But using --run allows setting default vars that are
43 # evaluated on run and not during build time.
45 ''--run 'export GAMUSERCONFIGDIR="''${XDG_CONFIG_HOME:-$HOME/.config}/gam"' ''
46 ''--run 'export GAMSITECONFIGDIR="''${XDG_CONFIG_HOME:-$HOME/.config}/gam"' ''
47 ''--run 'export GAMCACHEDIR="''${XDG_CACHE_HOME:-$HOME/.cache}/gam"' ''
48 ''--run 'export GAMDRIVEDIR="$PWD"' ''
54 cp gam.py $out/bin/gam
55 mkdir -p $out/lib/${python3.libPrefix}/site-packages
56 cp -r gam $out/lib/${python3.libPrefix}/site-packages
62 ${python3.interpreter} -m unittest discover --pattern "*_test.py" --buffer
67 description = "Command line management for Google Workspace";
68 homepage = "https://github.com/GAM-team/GAM/wiki";
69 license = licenses.asl20;
70 maintainers = with maintainers; [ thanegill ];