gam: 6.58 -> 7.21.01 (#369799)

authored by Sandro and committed by GitHub d2cf0423 f2f6b53a

+16 -19
+16 -19
pkgs/by-name/ga/gam/package.nix
··· 2 lib, 3 fetchFromGitHub, 4 python3, 5 }: 6 7 python3.pkgs.buildPythonApplication rec { 8 pname = "gam"; 9 - version = "6.58"; 10 - format = "other"; 11 12 src = fetchFromGitHub { 13 owner = "GAM-team"; 14 repo = "GAM"; 15 tag = "v${version}"; 16 - sha256 = "sha256-AIaPzYavbBlJyi9arZN8HTmUXM7Tef0SIfE07PmV9Oo="; 17 }; 18 19 - sourceRoot = "${src.name}/src"; 20 21 - propagatedBuildInputs = with python3.pkgs; [ 22 chardet 23 cryptography 24 distro 25 filelock 26 google-api-python-client 27 google-auth 28 google-auth-oauthlib 29 httplib2 30 lxml 31 passlib 32 pathvalidate 33 python-dateutil 34 - setuptools 35 ]; 36 37 # Use XDG-ish dirs for configuration. These would otherwise be in the gam ··· 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. 44 makeWrapperArgs = [ 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"' '' 49 ]; 50 51 - installPhase = '' 52 - runHook preInstall 53 - mkdir -p $out/bin 54 - cp gam.py $out/bin/gam 55 - mkdir -p $out/${python3.sitePackages} 56 - cp -r gam $out/${python3.sitePackages} 57 - runHook postInstall 58 - ''; 59 60 - checkPhase = '' 61 - runHook preCheck 62 - ${python3.interpreter} -m unittest discover --pattern "*_test.py" --buffer 63 - runHook postCheck 64 - ''; 65 66 meta = { 67 description = "Command line management for Google Workspace";
··· 2 lib, 3 fetchFromGitHub, 4 python3, 5 + yubikey-manager, 6 + gitUpdater, 7 + cacert, 8 }: 9 10 python3.pkgs.buildPythonApplication rec { 11 pname = "gam"; 12 + version = "7.21.01"; 13 + pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "GAM-team"; 17 repo = "GAM"; 18 tag = "v${version}"; 19 + hash = "sha256-Xj9GTNVuRddu3YQtXD/+yM/MNMxXUkfprtIFAm9SnA4="; 20 }; 21 22 + build-system = [ python3.pkgs.hatchling ]; 23 24 + dependencies = with python3.pkgs; [ 25 + arrow 26 chardet 27 cryptography 28 distro 29 filelock 30 google-api-python-client 31 google-auth 32 + google-auth-httplib2 33 google-auth-oauthlib 34 httplib2 35 lxml 36 passlib 37 pathvalidate 38 python-dateutil 39 + yubikey-manager 40 ]; 41 42 # Use XDG-ish dirs for configuration. These would otherwise be in the gam ··· 46 # at build time and then single quotes the vars in the wrapper, thus they 47 # wouldn't get expanded. But using --run allows setting default vars that are 48 # evaluated on run and not during build time. 49 + # Detailed on this page: https://github.com/GAM-team/GAM/wiki/gam.cfg 50 makeWrapperArgs = [ 51 + ''--set-default GAM_CA_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt"'' 52 + ''--run 'export GAMCFGDIR="''${XDG_CONFIG_HOME:-$HOME/.config}/gam"' '' 53 ''--run 'export GAMUSERCONFIGDIR="''${XDG_CONFIG_HOME:-$HOME/.config}/gam"' '' 54 ''--run 'export GAMSITECONFIGDIR="''${XDG_CONFIG_HOME:-$HOME/.config}/gam"' '' 55 ''--run 'export GAMCACHEDIR="''${XDG_CACHE_HOME:-$HOME/.cache}/gam"' '' 56 ''--run 'export GAMDRIVEDIR="$PWD"' '' 57 ]; 58 59 + pythonImportsCheck = [ "gam" ]; 60 61 + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 62 63 meta = { 64 description = "Command line management for Google Workspace";