diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-02-28 16:02:06 +0000 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-02-28 16:08:20 +0000 |
commit | 6f1d2013c0f6df93cd0164b3cdcc24eaed5d46f8 (patch) | |
tree | 73a9253ffc4f744dfde0166e668b791bead733df /pkgs/applications/version-management/git-cola | |
parent | 93a524dba0299e2096643635bcf87dc5c23a97aa (diff) |
git-cola: run tests
Diffstat (limited to 'pkgs/applications/version-management/git-cola')
-rw-r--r-- | pkgs/applications/version-management/git-cola/default.nix | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/applications/version-management/git-cola/default.nix b/pkgs/applications/version-management/git-cola/default.nix index 08a3989b5bbcb..e9959cd42deee 100644 --- a/pkgs/applications/version-management/git-cola/default.nix +++ b/pkgs/applications/version-management/git-cola/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, python3Packages, gettext, git, qt5 }: +{ stdenv, lib, fetchFromGitHub, python3Packages, gettext, git, qt5 }: python3Packages.buildPythonApplication rec { pname = "git-cola"; @@ -11,11 +11,23 @@ python3Packages.buildPythonApplication rec { hash = "sha256-s+acQo9b+ZQ31qXBf0m8ajXYuYEQzNybmX9nw+c0DQY="; }; - buildInputs = [ git gettext ]; - propagatedBuildInputs = with python3Packages; [ pyqt5 qtpy send2trash ]; - nativeBuildInputs = [ qt5.wrapQtAppsHook ]; + # 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 ]; - doCheck = false; + disabledTestPaths = [ + "qtpy/" + "contrib/win32" + ] ++ lib.optionals stdenv.isDarwin [ + "cola/inotify.py" + ]; preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") |