depot/third_party/nixpkgs/pkgs/development/python-modules/coverage/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
620 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mock,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "coverage";
version = "7.5.3";
pyproject = true;
# uses f strings
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-BK78pRkNHcelOkwaWn+FaIETBteo7iMcQvtpIVVxlE8=";
};
nativeBuildInputs = [ setuptools ];
# No tests in archive
doCheck = false;
nativeCheckInputs = [ mock ];
meta = {
description = "Code coverage measurement for python";
homepage = "https://coverage.readthedocs.io/";
license = lib.licenses.bsd3;
};
}