python3Packages.opentelemetry-instrumentation-requests: fix test fixtures

This commit is contained in:
Yaroslav Bolyukin 2026-03-11 20:57:00 +01:00 committed by Sandro Jäckel
commit a84547aa74
No known key found for this signature in database
GPG key ID: 236B6291555E8401

View file

@ -1,5 +1,6 @@
{
buildPythonPackage,
fetchpatch,
requests,
hatchling,
opentelemetry-api,
@ -18,6 +19,16 @@ buildPythonPackage {
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-requests";
patches = [
# remove hardcoded requests version from fixtures
(fetchpatch {
url = "https://github.com/open-telemetry/opentelemetry-python-contrib/commit/69a94e0c3b25edfdc4abeb18a4d26f5b7532e7ba.patch";
stripLen = 2;
includes = [ "tests/test_requests_integration.py" ];
hash = "sha256-JGWJVHR6lAg8bG1fpfJ4BJbqipnVFRLV7i/bKwOmtPk=";
})
];
build-system = [ hatchling ];
dependencies = [