Commit af3fe785 authored by Bob van der Linden's avatar Bob van der Linden Committed by Bjørn Forsman
Browse files

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.
parent 34aee8e6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 = [