mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
python39Packages.inform: remove pytest-runner, use pytestCheckHook phase
This commit is contained in:
parent
75c8841f75
commit
4ba7ccf501
@ -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 New Issue
Block a user