From b81440020ef2ea7a7256cf6c5f23fe010738b7fa Mon Sep 17 00:00:00 2001 From: Austin Butler Date: Sat, 25 May 2024 22:02:09 -0700 Subject: [PATCH] gyb: 1.80 -> 1.81 --- pkgs/tools/backup/gyb/default.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/backup/gyb/default.nix b/pkgs/tools/backup/gyb/default.nix index fedf02a9b7e6..9619cab84086 100644 --- a/pkgs/tools/backup/gyb/default.nix +++ b/pkgs/tools/backup/gyb/default.nix @@ -1,22 +1,21 @@ { lib , fetchFromGitHub , python3 -, python3Packages }: -python3Packages.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "gyb"; - version = "1.80"; + version = "1.81"; format = "other"; src = fetchFromGitHub { owner = "GAM-team"; repo = "got-your-back"; rev = "refs/tags/v${version}"; - sha256 = "sha256-4xElzhf9R6qnzr4oyZktQy/ym2vEjR9MrHnLYxBiAOg="; + hash = "sha256-ViNOEH5wyAQRR56egRhh4JoP1PWOCr+rxFmqxfJiu+0="; }; - propagatedBuildInputs = with python3Packages; [ + dependencies = with python3.pkgs; [ google-api-python-client google-auth google-auth-oauthlib @@ -28,14 +27,18 @@ python3Packages.buildPythonApplication rec { runHook preInstall mkdir -p $out/{bin,${python3.sitePackages}} - mv gyb.py "$out/bin/gyb" - mv *.py "$out/${python3.sitePackages}/" + mv gyb.py $out/bin/gyb + mv *.py $out/${python3.sitePackages}/ runHook postInstall ''; checkPhase = '' - $out/bin/gyb --help > /dev/null + runHook preCheck + + PYTHONPATH="" $out/bin/gyb --help > /dev/null + + runHook postCheck ''; meta = with lib; { @@ -45,6 +48,7 @@ python3Packages.buildPythonApplication rec { ''; homepage = "https://github.com/GAM-team/got-your-back"; license = licenses.asl20; + mainProgram = "gyb"; maintainers = with maintainers; [ austinbutler ]; }; }