push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
{
lib,
stdenv,
buildPythonPackage,
isPy312,
fetchFromGitHub,
flaky,
hypothesis,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
}:
buildPythonPackage rec {
pname = "coverage";
version = "7.10.6";
pyproject = true;
src = fetchFromGitHub {
owner = "nedbat";
repo = "coveragepy";
tag = version;
hash = "sha256-16t29ftyYBkGvzlV6+imjO+HM1UD/Nrhn+n4pK3h5iU=";
};
build-system = [ setuptools ];
optional-dependencies = {
toml = lib.optionals (pythonOlder "3.11") [
tomli
];
};
nativeCheckInputs = [
flaky
hypothesis
pytest-xdist
pytestCheckHook
];
preCheck = ''
export PATH="$PATH:$out/bin"
# import from $out
rm -r coverage
'';
disabledTests = [
"test_doctest"
"test_files_up_one_level"
"test_get_encoded_zip_files"
"test_multi"
"test_no_duplicate_packages"
"test_zipfile"
# tests expect coverage source to be there
"test_all_our_source_files"
"test_metadata"
"test_more_metadata"
"test_real_code_regions"
];
disabledTestPaths = [
"tests/test_debug.py"
"tests/test_plugins.py"
"tests/test_process.py"
"tests/test_report.py"
"tests/test_venv.py"
];
meta = {
changelog = "https://github.com/nedbat/coveragepy/blob/${src.tag}/CHANGES.rst";
description = "Code coverage measurement for Python";
homepage = "https://github.com/nedbat/coveragepy";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}