linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pytest-cov / default.nix
blob003d7e14ab59647eceea39c514c4d18324c77d3d
1 { lib, buildPythonPackage, fetchPypi
2 , pytest, coverage }:
4 buildPythonPackage rec {
5   pname = "pytest-cov";
6   version = "2.10.1";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "47bd0ce14056fdd79f93e1713f88fad7bdcc583dcd7783da86ef2f085a0bb88e";
11   };
13   buildInputs = [ pytest ];
14   propagatedBuildInputs = [ coverage ];
16   # xdist related tests fail with the following error
17   # OSError: [Errno 13] Permission denied: 'py/_code'
18   doCheck = false;
19   checkPhase = ''
20     # allow to find the module helper during the test run
21     export PYTHONPATH=$PYTHONPATH:$PWD/tests
22     py.test tests
23   '';
25   meta = with lib; {
26     description = "Plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing";
27     homepage = "https://github.com/pytest-dev/pytest-cov";
28     license = licenses.mit;
29   };