depot/third_party/nixpkgs/pkgs/development/python-modules/gcovr/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

46 lines
994 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, lxml
, pygments
, pythonOlder
}:
buildPythonPackage rec {
pname = "gcovr";
version = "6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hjjV9E3vEOOOMWbIozvvZkPsIEaH4Kx9NFzkGpjFdQs=";
};
propagatedBuildInputs = [
jinja2
lxml
pygments
];
# 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 = "Python script for summarizing gcov data";
homepage = "https://www.gcovr.com/";
changelog = "https://github.com/gcovr/gcovr/blob/${version}/CHANGELOG.rst";
license = licenses.bsd0;
maintainers = with maintainers; [ ];
};
}