mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 05:57:04 +01:00
Conflicts: pkgs/development/python-modules/bundlewrap/default.nix pkgs/development/python-modules/coverage/default.nix pkgs/development/python-modules/h5netcdf/default.nix pkgs/development/python-modules/hypothesis/default.nix pkgs/development/python-modules/numba/default.nix pkgs/development/python-modules/optype/default.nix pkgs/development/python-modules/setuptools-git-versioning/default.nix pkgs/development/python-modules/sphinx/default.nix
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flaky,
|
|
hypothesis,
|
|
pytest-xdist,
|
|
pytest7CheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coverage";
|
|
version = "7.13.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coveragepy";
|
|
repo = "coveragepy";
|
|
tag = version;
|
|
hash = "sha256-dYgZLAiuPwYs4NomT+c2KS9VXXYEMW8oyHk2y4TCwe0=";
|
|
};
|
|
|
|
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/${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 ];
|
|
};
|
|
}
|