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