depot/third_party/nixpkgs/pkgs/applications/version-management/git-cola/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

36 lines
1,013 B
Nix

{ stdenv, lib, fetchFromGitHub, python3Packages, gettext, git, qt5 }:
python3Packages.buildPythonApplication rec {
pname = "git-cola";
version = "4.2.1";
src = fetchFromGitHub {
owner = "git-cola";
repo = "git-cola";
rev = "refs/tags/v${version}";
hash = "sha256-VAn4zXypOugPIVyXQ/8Yt0rCDM7hVdIY+jpmoTHqssU=";
};
buildInputs = lib.optionals stdenv.isLinux [ qt5.qtwayland ];
propagatedBuildInputs = with python3Packages; [ git pyqt5 qtpy send2trash ];
nativeBuildInputs = [ gettext qt5.wrapQtAppsHook ];
nativeCheckInputs = with python3Packages; [ git pytestCheckHook ];
disabledTestPaths = [
"qtpy/"
"contrib/win32"
] ++ lib.optionals stdenv.isDarwin [
"cola/inotify.py"
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; {
homepage = "https://github.com/git-cola/git-cola";
description = "A sleek and powerful Git GUI";
license = licenses.gpl2;
maintainers = [ maintainers.bobvanderlinden ];
};
}