Unverified Commit 37f62f06 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.lcgit: refactor

parent 7d91fe1f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4,12 +4,13 @@
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "lcgit";
  version = "1.0.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -22,9 +23,11 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace pytest.ini \
      --replace " --cov" ""
      --replace-fail " --cov" ""
  '';

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "lcgit" ];