depot/third_party/nixpkgs/pkgs/development/python-modules/coverage/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

35 lines
618 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "coverage";
version = "7.4.4";
pyproject = true;
# uses f strings
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-yQHfg9CXZJ4lfoA74iWSrt/VGC8Hs8yH1kC7ua/VD0k=";
};
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;
};
}