depot/third_party/nixpkgs/pkgs/development/python-modules/coverage/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

35 lines
618 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "coverage";
version = "7.4.3";
pyproject = true;
# uses f strings
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-J29gd6XGFEekjRM+0T51nAnmKv8NyEJ0po3BhmAQTVI=";
};
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;
};
}