From 853e5dd9210bbb352b96065fafdfca16c5a1f621 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Mon, 9 Jun 2025 11:11:54 +0200 Subject: [PATCH] git-machete: move to pkgs/by-name --- .../gi/git-machete/package.nix} | 19 ++++++++++--------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 10 insertions(+), 11 deletions(-) rename pkgs/{applications/version-management/git-machete/default.nix => by-name/gi/git-machete/package.nix} (88%) diff --git a/pkgs/applications/version-management/git-machete/default.nix b/pkgs/by-name/gi/git-machete/package.nix similarity index 88% rename from pkgs/applications/version-management/git-machete/default.nix rename to pkgs/by-name/gi/git-machete/package.nix index 5b9db51a215f..6dc30fe03830 100644 --- a/pkgs/applications/version-management/git-machete/default.nix +++ b/pkgs/by-name/gi/git-machete/package.nix @@ -1,15 +1,13 @@ { lib, - buildPythonApplication, - pytest-mock, - pytestCheckHook, + python3, fetchFromGitHub, installShellFiles, git, nix-update-script, }: -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "git-machete"; version = "3.34.1"; @@ -22,11 +20,14 @@ buildPythonApplication rec { nativeBuildInputs = [ installShellFiles ]; - nativeCheckInputs = [ - git - pytest-mock - pytestCheckHook - ]; + nativeCheckInputs = + [ + git + ] + ++ (with python3.pkgs; [ + pytest-mock + pytestCheckHook + ]); disabledTests = [ # Requires fully functioning shells including zsh modules and bash diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9465ef1cb5d8..31f5b7fe7c9e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1307,8 +1307,6 @@ with pkgs; git-imerge = python3Packages.callPackage ../applications/version-management/git-imerge { }; - git-machete = python3Packages.callPackage ../applications/version-management/git-machete { }; - git-publish = python3Packages.callPackage ../applications/version-management/git-publish { }; git-recent = callPackage ../applications/version-management/git-recent {