mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-util-http / default.nix
blobe1bcc59c2e8e4ad741d09874ee464d4b80959900
2   buildPythonPackage,
3   pythonOlder,
4   hatchling,
5   opentelemetry-instrumentation,
6   opentelemetry-test-utils,
7   pytestCheckHook,
8 }:
10 buildPythonPackage {
11   inherit (opentelemetry-instrumentation) version src;
12   pname = "opentelemetry-util-http";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   sourceRoot = "${opentelemetry-instrumentation.src.name}/util/opentelemetry-util-http";
19   build-system = [ hatchling ];
21   nativeCheckInputs = [
22     opentelemetry-instrumentation
23     opentelemetry-test-utils
24     pytestCheckHook
25   ];
27   # https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
28   disabledTests = [
29     "test_nonstandard_method"
30     "test_nonstandard_method_allowed"
31   ];
33   pythonImportsCheck = [ "opentelemetry.util.http" ];
35   __darwinAllowLocalNetworking = true;
37   meta = opentelemetry-instrumentation.meta // {
38     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/util/opentelemetry-util-http";
39     description = "Web util for OpenTelemetry";
40   };