python313Packages.aws-secretsmanager-caching: migrate to pytest-cov-stub

Changed files
+5 -20
pkgs
development
python-modules
aws-secretsmanager-caching
+5 -6
pkgs/development/python-modules/aws-secretsmanager-caching/default.nix
···
botocore,
buildPythonPackage,
fetchPypi,
+
pytest-cov-stub,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
···
hash = "sha256-9tbsnUPg2+T21d6982tMtpHRWpZ7NYsldfXZGXSmwP8=";
};
-
patches = [
-
# Remove coverage tests from the pytest invocation in setup.cfg.
-
./remove-coverage-tests.patch
-
];
-
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'," ""
···
setuptools # Needs pkg_resources at runtime.
];
-
nativeCheckInputs = [ pytestCheckHook ];
+
nativeCheckInputs = [
+
pytest-cov-stub
+
pytestCheckHook
+
];
disabledTestPaths = [
# Integration tests require networking.
-14
pkgs/development/python-modules/aws-secretsmanager-caching/remove-coverage-tests.patch
···
-
diff --git a/setup.cfg b/setup.cfg
-
index 5aa81b2..0c02ded 100644
-
--- a/setup.cfg
-
+++ b/setup.cfg
-
@@ -3,9 +3,6 @@ xfail_strict = true
-
addopts =
-
--verbose
-
--doctest-modules
-
- --cov aws_secretsmanager_caching
-
- --cov-fail-under 90
-
- --cov-report term-missing
-
--ignore doc/
-
-
[aliases]