2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
|
|
|
, lxml
|
2021-09-18 10:52:07 +00:00
|
|
|
, pygments
|
2022-03-30 09:31:56 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcovr";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "5.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-d4CEQ1m/8LlsBBR9r/8l5uWF4FWFvVQjabvDd9ad4SE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
lxml
|
2021-09-18 10:52:07 +00:00
|
|
|
pygments
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Python script for summarizing gcov data";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gcovr.com/";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|