Unverified Commit c2ae4d67 authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

git-cola: 4.10.1 -> 4.11.0 and refactor (#379443)

parents 89e09355 825e9d78
Loading
Loading
Loading
Loading
+32 −34
Original line number Diff line number Diff line
@@ -6,67 +6,65 @@
  gettext,
  git,
  qt5,
  gitUpdater,
  versionCheckHook,
  nix-update-script,
}:

python3Packages.buildPythonApplication rec {
  pname = "git-cola";
  version = "4.10.1";
  version = "4.11.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "git-cola";
    repo = "git-cola";
    rev = "v${version}";
    hash = "sha256-tOd+LSS6inGLRb6Wm92tta0JbjSZw+88hqFDJmSSJlY=";
    tag = "v${version}";
    hash = "sha256-aFdjkuQrVYgYALTnupdwVL58kSsp4SC6xsXefA1NnKI=";
  };

  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
    qt5.qtwayland
  ];
  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ qt5.qtwayland ];

  propagatedBuildInputs = with python3Packages; [
  propagatedBuildInputs =
    [ git ]
    ++ (with python3Packages; [
      setuptools
    git
      pyqt5
      qtpy
      send2trash
      polib
  ];
    ]);

  nativeBuildInputs = with python3Packages; [
    setuptools-scm
  nativeBuildInputs = [
    gettext
    qt5.wrapQtAppsHook
    python3Packages.setuptools-scm
  ];

  nativeCheckInputs = with python3Packages; [
  nativeCheckInputs = [
    git
    pytestCheckHook
    python3Packages.pytestCheckHook
    versionCheckHook
  ];

  disabledTestPaths =
    [
  versionCheckProgramArg = "--version";

  disabledTestPaths = [
    "qtpy/"
    "contrib/win32"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      "cola/inotify.py"
    ];
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "cola/inotify.py" ];

  preFixup = ''
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';

  passthru.updateScript = gitUpdater {
    rev-prefix = "v";
  };
  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    homepage = "https://github.com/git-cola/git-cola";
  meta = {
    description = "Sleek and powerful Git GUI";
    license = licenses.gpl2;
    maintainers = [ maintainers.bobvanderlinden ];
    homepage = "https://git-cola.github.io/";
    changelog = "https://github.com/git-cola/git-cola/blob/v${version}/CHANGES.rst";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ bobvanderlinden ];
    mainProgram = "git-cola";
  };
}