python39Packages.inform: remove pytest-runner, use pytestCheckHook phase

This commit is contained in:
Sandro Jäckel 2021-08-26 23:46:13 +02:00
parent 75c8841f75
commit 4ba7ccf501
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -2,8 +2,6 @@
, arrow
, six
, hypothesis
, pytest
, pytest-runner
, pytestCheckHook
}:
@ -18,13 +16,18 @@ buildPythonPackage rec {
sha256 = "114cyff00j9r7qm2ld4w1a4kklr5gx570vk67p56gpr2553dkmly";
};
nativeBuildInputs = [ pytest-runner ];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner>=2.0" ""
'';
propagatedBuildInputs = [ arrow six ];
checkInputs = [ pytest hypothesis ];
checkPhase = ''
checkInputs = [ pytestCheckHook hypothesis ];
preCheck = ''
patchShebangs test.doctests.py test.inform.py
./test.doctests.py && ./test.inform.py && pytest
./test.doctests.py
./test.inform.py
'';
meta = with lib; {