1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
39 lines
983 B
Nix
39 lines
983 B
Nix
{
|
|
buildPythonPackage,
|
|
hatchling,
|
|
opentelemetry-instrumentation,
|
|
opentelemetry-test-utils,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-instrumentation) version src;
|
|
pname = "opentelemetry-util-http";
|
|
pyproject = true;
|
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/util/opentelemetry-util-http";
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
opentelemetry-instrumentation
|
|
opentelemetry-test-utils
|
|
pytestCheckHook
|
|
];
|
|
|
|
# https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
|
|
disabledTests = [
|
|
"test_nonstandard_method"
|
|
"test_nonstandard_method_allowed"
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.util.http" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/util/opentelemetry-util-http";
|
|
description = "Web util for OpenTelemetry";
|
|
};
|
|
}
|