diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-08-26 23:46:13 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-08-26 23:46:13 +0200 |
commit | 4ba7ccf5015b5aea35c6201e26570adafdd36418 (patch) | |
tree | 04c1c0be76f634d47a1486ef29c61541f6b06f71 | |
parent | 75c8841f75dd201e3b05b76d7bac37ac0f2bbf5c (diff) | |
download | nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar.gz nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar.bz2 nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar.lz nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar.xz nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.tar.zst nixpkgs-4ba7ccf5015b5aea35c6201e26570adafdd36418.zip |
python39Packages.inform: remove pytest-runner, use pytestCheckHook phase
-rw-r--r-- | pkgs/development/python-modules/inform/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/inform/default.nix b/pkgs/development/python-modules/inform/default.nix index 9f78d86a2be..2397c0bc4db 100644 --- a/pkgs/development/python-modules/inform/default.nix +++ b/pkgs/development/python-modules/inform/default.nix @@ -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; { |