python39Packages.inform: remove pytest-runner, use pytestCheckHook phase
This commit is contained in:
parent
75c8841f75
commit
4ba7ccf501
1 changed files with 9 additions and 6 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue