2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 20:11:43 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-04 21:42:03 +00:00
|
|
|
, jinja2
|
2019-12-06 09:19:59 +00:00
|
|
|
, lxml
|
2021-09-12 13:55:39 +00:00
|
|
|
, pygments
|
2022-03-27 11:17:48 +00:00
|
|
|
, pythonOlder
|
2018-10-16 20:11:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcovr";
|
2023-03-10 08:04:22 +00:00
|
|
|
version = "6.0";
|
2022-03-27 11:17:48 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-16 20:11:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-10 08:04:22 +00:00
|
|
|
hash = "sha256-hjjV9E3vEOOOMWbIozvvZkPsIEaH4Kx9NFzkGpjFdQs=";
|
2018-10-16 20:11:43 +00:00
|
|
|
};
|
|
|
|
|
2019-03-04 21:42:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
2019-12-06 09:19:59 +00:00
|
|
|
lxml
|
2021-09-12 13:55:39 +00:00
|
|
|
pygments
|
2019-03-04 21:42:03 +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;
|
|
|
|
|
2019-12-06 09:19:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gcovr"
|
|
|
|
"gcovr.workers"
|
|
|
|
"gcovr.configuration"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-27 11:17:48 +00:00
|
|
|
description = "Python script for summarizing gcov data";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gcovr.com/";
|
2023-03-10 08:23:01 +00:00
|
|
|
changelog = "https://github.com/gcovr/gcovr/blob/${version}/CHANGELOG.rst";
|
2022-03-27 11:17:48 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 20:11:43 +00:00
|
|
|
};
|
|
|
|
}
|