From 37f62f065fddf37a821f41a31432c88417e21346 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 7 Aug 2024 09:12:24 +0200 Subject: [PATCH] python312Packages.lcgit: refactor --- pkgs/development/python-modules/lcgit/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lcgit/default.nix b/pkgs/development/python-modules/lcgit/default.nix index 839b9dafb3b5..91258c86a08b 100644 --- a/pkgs/development/python-modules/lcgit/default.nix +++ b/pkgs/development/python-modules/lcgit/default.nix @@ -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" ];