From a55496d2220cffa00802cf3d1dea6dcb5602ae45 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:34:01 -0700 Subject: git-up: 1.6.1 -> 2.2.0 --- .../version-management/git-up/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'pkgs/applications/version-management') diff --git a/pkgs/applications/version-management/git-up/default.nix b/pkgs/applications/version-management/git-up/default.nix index e4bd7e3ad8c1..7c0e6d53db0a 100644 --- a/pkgs/applications/version-management/git-up/default.nix +++ b/pkgs/applications/version-management/git-up/default.nix @@ -6,26 +6,33 @@ pythonPackages.buildPythonApplication rec { pname = "git-up"; - version = "1.6.1"; + version = "2.2.0"; + format = "pyproject"; src = fetchPypi { - inherit pname version; - sha256 = "0gs791yb0cndg9879vayvcj329jwhzpk6wrf9ri12l5hg8g490za"; + pname = "git_up"; + inherit version; + hash = "sha256-GTX2IWLQ48yWfPnmtEa9HJ5umQLttqgTlgZQlaWgeE4="; }; + nativeBuildInputs = with pythonPackages; [ + poetry-core + ]; + # git should be on path for tool to work correctly propagatedBuildInputs = [ git ] ++ (with pythonPackages; [ - click colorama - docopt gitpython - six termcolor ]); - nativeCheckInputs = [ git pythonPackages.nose ]; # git needs to be on path + nativeCheckInputs = [ + git + pythonPackages.pytestCheckHook + ]; + # 1. git fails to run as it cannot detect the email address, so we set it # 2. $HOME is by default not a valid dir, so we have to set that too # https://github.com/NixOS/nixpkgs/issues/12591 -- cgit 1.4.1