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

28 lines
539 B
Nix

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