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