diff --git a/pkgs/development/python-modules/git-revise/default.nix b/pkgs/development/python-modules/git-revise/default.nix index 12cc6f7e715a..5762c0cfeee2 100644 --- a/pkgs/development/python-modules/git-revise/default.nix +++ b/pkgs/development/python-modules/git-revise/default.nix @@ -2,27 +2,32 @@ lib, stdenv, buildPythonPackage, + hatchling, git, + openssh, gnupg, fetchFromGitHub, pytestCheckHook, }: -buildPythonPackage { +buildPythonPackage (finalAttrs: { pname = "git-revise"; - version = "0.7.0-unstable-2025-01-28"; - format = "setuptools"; + version = "0.8.0"; + pyproject = true; # Missing tests on PyPI src = fetchFromGitHub { owner = "mystor"; repo = "git-revise"; - rev = "189c9fe150e5587def75c51709246c47c93e3b4d"; - hash = "sha256-bqhRV0WtWRUKkBG2tEvctxdoYRkcrpL4JZSHYzox8so="; + tag = "v${finalAttrs.version}"; + hash = "sha256-OdkhYEq30RtDOeCQWl/L9FMgCttznzihbYgT8B6KYuY="; }; + build-system = [ hatchling ]; + nativeCheckInputs = [ git + openssh pytestCheckHook ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ @@ -37,9 +42,9 @@ buildPythonPackage { meta = { description = "Efficiently update, split, and rearrange git commits"; homepage = "https://github.com/mystor/git-revise"; - changelog = "https://github.com/mystor/git-revise/blob/main/CHANGELOG.md"; + changelog = "https://github.com/mystor/git-revise/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; mainProgram = "git-revise"; maintainers = with lib.maintainers; [ _9999years ]; }; -} +})