python3Packages.datadog: disable flaky tests (#405986)

authored by Robert Scott and committed by GitHub d5b0a777 a99c3b8f

+26 -15
+26 -15
pkgs/development/python-modules/datadog/default.nix
··· 1 { 2 lib, 3 buildPythonPackage, 4 click, 5 - fetchPypi, 6 freezegun, 7 - hatchling, 8 mock, 9 pytest-vcr, 10 pytestCheckHook, 11 python-dateutil, 12 - pythonAtLeast, 13 - pythonOlder, 14 - requests, 15 vcrpy, 16 }: 17 ··· 20 version = "0.51.0"; 21 pyproject = true; 22 23 - disabled = pythonOlder "3.7"; 24 - 25 - src = fetchPypi { 26 - inherit pname version; 27 - hash = "sha256-MnlTT4Ma4LSuLYzkLvA4tKs45mfX7W/3Q3mC16DPUlA="; 28 }; 29 30 - nativeBuildInputs = [ hatchling ]; 31 32 - propagatedBuildInputs = [ requests ]; 33 34 __darwinAllowLocalNetworking = true; 35 ··· 54 "test_default_settings_set" 55 # https://github.com/DataDog/datadogpy/issues/746 56 "TestDogshell" 57 ] 58 ++ lib.optionals (pythonAtLeast "3.13") [ 59 # https://github.com/DataDog/datadogpy/issues/880 ··· 62 63 pythonImportsCheck = [ "datadog" ]; 64 65 - meta = with lib; { 66 description = "Datadog Python library"; 67 homepage = "https://github.com/DataDog/datadogpy"; 68 changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md"; 69 - license = licenses.bsd3; 70 - maintainers = [ ]; 71 }; 72 }
··· 1 { 2 lib, 3 buildPythonPackage, 4 + fetchFromGitHub, 5 + pythonAtLeast, 6 + 7 + # build-system 8 + hatchling, 9 + 10 + # dependencies 11 + requests, 12 + 13 + # testing 14 click, 15 freezegun, 16 mock, 17 pytest-vcr, 18 pytestCheckHook, 19 python-dateutil, 20 vcrpy, 21 }: 22 ··· 25 version = "0.51.0"; 26 pyproject = true; 27 28 + src = fetchFromGitHub { 29 + owner = "DataDog"; 30 + repo = "datadogpy"; 31 + tag = "v${version}"; 32 + hash = "sha256-DIuKawqOzth8XYF+M3fYm2kMeo3UbfS34/Qa4Y9V1h8="; 33 }; 34 35 + build-system = [ hatchling ]; 36 37 + dependencies = [ requests ]; 38 39 __darwinAllowLocalNetworking = true; 40 ··· 59 "test_default_settings_set" 60 # https://github.com/DataDog/datadogpy/issues/746 61 "TestDogshell" 62 + 63 + # Flaky: test execution time aganst magic values 64 + "test_distributed" 65 + "test_timed" 66 + "test_timed_in_ms" 67 + "test_timed_start_stop_calls" 68 ] 69 ++ lib.optionals (pythonAtLeast "3.13") [ 70 # https://github.com/DataDog/datadogpy/issues/880 ··· 73 74 pythonImportsCheck = [ "datadog" ]; 75 76 + meta = { 77 description = "Datadog Python library"; 78 homepage = "https://github.com/DataDog/datadogpy"; 79 changelog = "https://github.com/DataDog/datadogpy/blob/v${version}/CHANGELOG.md"; 80 + license = lib.licenses.bsd3; 81 + maintainers = [ lib.maintainers.sarahec ]; 82 }; 83 }