mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.opentelemetry-instrumentation-requests: fix test fixtures
This commit is contained in:
parent
d40d2aaddf
commit
a84547aa74
1 changed files with 11 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue