2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
colorlog,
|
|
|
|
jinja2,
|
|
|
|
lxml,
|
|
|
|
pygments,
|
|
|
|
pythonOlder,
|
|
|
|
tomli,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcovr";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "7.2";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-4+lctWyojbvnQctdaaor5JTrL8KgnuT2UWRKZw7lrrM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
colorlog
|
2020-04-24 23:36:52 +00:00
|
|
|
jinja2
|
|
|
|
lxml
|
2021-09-18 10:52:07 +00:00
|
|
|
pygments
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
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.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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gcovr";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gcovr.com/";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/gcovr/gcovr/blob/${version}/CHANGELOG.rst";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.bsd0;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ sigmanificient ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|