diff --git a/pkgs/development/python-modules/in-place/default.nix b/pkgs/development/python-modules/in-place/default.nix index 823c08fad32d..dd7c6f099825 100644 --- a/pkgs/development/python-modules/in-place/default.nix +++ b/pkgs/development/python-modules/in-place/default.nix @@ -1,16 +1,17 @@ { + lib, buildPythonPackage, fetchFromGitHub, - lib, + hatchling, + pytest-cov-stub, pytestCheckHook, pythonOlder, - setuptools, }: buildPythonPackage rec { pname = "in-place"; version = "1.0.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -21,13 +22,12 @@ buildPythonPackage rec { hash = "sha256-PyOSuHHtftEPwL3mTwWYStZNXYX3EhptKfTu0PJjOZ8="; }; - postPatch = '' - substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" "" - ''; + build-system = [ hatchling ]; - nativeBuildInputs = [ setuptools ]; - - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "in_place" ];