summary refs log tree commit diff
path: root/pkgs/development/python-modules/gcovr/default.nix
blob: 1332777189b137d81a7d4cde96d600e22044a8a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, lxml
}:

buildPythonPackage rec {
  pname = "gcovr";
  version = "4.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs";
  };

  propagatedBuildInputs = [
    jinja2
    lxml
  ];

  # There are no unit tests in the pypi tarball. Most of the unit tests on the
  # github repository currently only work with gcc5, so we just disable them.
  # See also: https://github.com/gcovr/gcovr/issues/206
  doCheck = false;

  pythonImportsCheck = [
    "gcovr"
    "gcovr.workers"
    "gcovr.configuration"
  ];

  meta = with lib; {
    description = "A Python script for summarizing gcov data";
    license = licenses.bsd0;
    homepage = "https://www.gcovr.com/";
  };

}