git-cola: fix package version

Use setuptools-scm and SETUPTOOLS_SCM_PRETEND_VERSION to force the
python package to be versioned the same as the Nix package without
relying on .git being available.
This commit is contained in:
Bob van der Linden
2023-11-19 21:45:45 +01:00
committed by Bjørn Forsman
parent 34aee8e640
commit af3fe78509

View File

@@ -11,9 +11,11 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-LNzsG6I4InygpfbzTikJ1gxTFkVrkDV1eS0CJwKT26A=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
buildInputs = lib.optionals stdenv.isLinux [ qt5.qtwayland ];
propagatedBuildInputs = with python3Packages; [ git pyqt5 qtpy send2trash ];
nativeBuildInputs = [ gettext qt5.wrapQtAppsHook ];
nativeBuildInputs = with python3Packages; [ setuptools-scm gettext qt5.wrapQtAppsHook ];
nativeCheckInputs = with python3Packages; [ git pytestCheckHook ];
disabledTestPaths = [