diff --git a/pkgs/development/python-modules/pytest-cov/default.nix b/pkgs/development/python-modules/pytest-cov/default.nix index a41c26b753b7..d0beff8a5cdc 100644 --- a/pkgs/development/python-modules/pytest-cov/default.nix +++ b/pkgs/development/python-modules/pytest-cov/default.nix @@ -1,16 +1,21 @@ -{ lib, buildPythonPackage, fetchPypi -, pytest, coverage }: +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, coverage +}: buildPythonPackage rec { pname = "pytest-cov"; - version = "2.11.1"; + version = "2.12.1"; src = fetchPypi { inherit pname version; - sha256 = "359952d9d39b9f822d9d29324483e7ba04a3a17dd7d05aa6beb7ea01e359e5f7"; + sha256 = "sha256-JhzuuMIntyYkmzdrhSa2APOGZ+4xT5EDU/oxjKoB9Nc="; }; buildInputs = [ pytest ]; + propagatedBuildInputs = [ coverage ]; # xdist related tests fail with the following error @@ -22,6 +27,8 @@ buildPythonPackage rec { py.test tests ''; + pythonImportsCheck = [ "pytest_cov" ]; + meta = with lib; { description = "Plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing"; homepage = "https://github.com/pytest-dev/pytest-cov";