depot/third_party/nixpkgs/pkgs/development/python-modules/coverage/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

28 lines
535 B
Nix

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