Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 2 additions & 30 deletions pkgs/development/python-modules/coverage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
buildPythonPackage,
isPy312,
fetchFromGitHub,
fetchpatch,
flaky,
hypothesis,
pytest-xdist,
Expand All @@ -16,27 +15,16 @@

buildPythonPackage rec {
pname = "coverage";
version = "7.13.0";
version = "7.13.1";
pyproject = true;

src = fetchFromGitHub {
owner = "coveragepy";
repo = "coveragepy";
tag = version;
hash = "sha256-2i01Jlk4oj/0WhoYE1BgeKKjZK3YpEOrGHEgNhTruR4=";
hash = "sha256-xdbgHUE+vbSiqLRDhd5G5u90VU5+TxLehAuwdhdGzBQ=";
};

patches = [
# test: correctly default the core being tested
# This fixes test_coverage_stop_in_threads
# https://github.com/coveragepy/coveragepy/issues/2109
(fetchpatch {
url = "https://github.com/coveragepy/coveragepy/commit/2f2e540709371f6184c2731f6d076bc782d37a3d.patch";
hash = "sha256-lwQ8OM9OWZAwrjExuPeGKSLEF+pYhgDHyAlgXzHiQ0M=";
excludes = [ "CHANGES.rst" ];
})
];

build-system = [ setuptools ];

optional-dependencies = {
Expand All @@ -59,27 +47,11 @@ buildPythonPackage rec {
'';

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/coveragepy/coveragepy/blob/${src.tag}/CHANGES.rst";
description = "Code coverage measurement for Python";
Expand Down
Loading