2023-03-04 12:14:45 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, python3Packages, gettext, git, qt5 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "git-cola";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "4.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "git-cola";
|
|
|
|
repo = "git-cola";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-s+acQo9b+ZQ31qXBf0m8ajXYuYEQzNybmX9nw+c0DQY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
# TODO: remove in the next release since upstream removed pytest-flake8
|
|
|
|
# https://github.com/git-cola/git-cola/commit/6c5c5c6c888ee1a095fc1ca5521af9a03b833205
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ git pyqt5 qtpy send2trash ];
|
|
|
|
nativeBuildInputs = [ gettext qt5.wrapQtAppsHook ];
|
|
|
|
nativeCheckInputs = with python3Packages; [ git pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"qtpy/"
|
|
|
|
"contrib/win32"
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"cola/inotify.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/git-cola/git-cola";
|
|
|
|
description = "A sleek and powerful Git GUI";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
|
|
};
|
|
|
|
}
|