python38Packages.bidict: Remove stale patch, use pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-01-20 11:54:42 +01:00
parent 9c6ca673a7
commit f1478a78ff
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -3,7 +3,7 @@
, sphinx
, hypothesis
, py
, pytest
, pytestCheckHook
, pytest-benchmark
, sortedcollections
, sortedcontainers
@ -23,23 +23,14 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ sphinx ];
# this can be removed >0.19.0
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools_scm < 4" "setuptools_scm"
'';
checkInputs = [
hypothesis
py
pytest
pytestCheckHook
pytest-benchmark
sortedcollections
sortedcontainers
];
checkPhase = ''
pytest tests
'';
meta = with lib; {
homepage = "https://github.com/jab/bidict";