diff --git a/pkgs/development/python-modules/html5lib/default.nix b/pkgs/development/python-modules/html5lib/default.nix
index 5a59b63cea4..82b48180709 100644
--- a/pkgs/development/python-modules/html5lib/default.nix
+++ b/pkgs/development/python-modules/html5lib/default.nix
@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, flake8
-, pytest
+, pytest_4
, pytest-expect
, mock
, six
@@ -18,7 +18,7 @@ buildPythonPackage rec {
sha256 = "66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736";
};
- checkInputs = [ flake8 pytest pytest-expect mock ];
+ checkInputs = [ flake8 pytest_4 pytest-expect mock ];
propagatedBuildInputs = [
six webencodings
];
@@ -42,4 +42,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ domenkozar prikhi ];
};
-}
\ No newline at end of file
+}