mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 05:43:41 +00:00
Diff: https://github.com/coveragepy/coveragepy/compare/7.14.0...7.14.1 Changelog: https://github.com/coveragepy/coveragepy/blob/7.14.1/CHANGES.rst
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flaky,
|
|
hypothesis,
|
|
pytest-xdist,
|
|
pytest7CheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "coverage";
|
|
version = "7.14.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coveragepy";
|
|
repo = "coveragepy";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-3/Q6TQfoZNM7bHjviw/C70i2ZgjobHnynmqX9qvreYQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
flaky
|
|
hypothesis
|
|
pytest-xdist
|
|
pytest7CheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export PATH="$PATH:$out/bin"
|
|
# import from $out
|
|
rm -r coverage
|
|
'';
|
|
|
|
disabledTests = [
|
|
# tests expect coverage source to be there
|
|
"test_all_our_source_files"
|
|
"test_real_code_regions"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/coveragepy/coveragepy/blob/${finalAttrs.src.tag}/CHANGES.rst";
|
|
description = "Code coverage measurement for Python";
|
|
homepage = "https://github.com/coveragepy/coveragepy";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
})
|