11{
22 lib ,
33 buildPythonPackage ,
4+ fetchFromGitHub ,
5+ pythonAtLeast ,
6+
7+ # build-system
8+ hatchling ,
9+
10+ # dependencies
11+ requests ,
12+
13+ # testing
414 click ,
5- fetchPypi ,
615 freezegun ,
7- hatchling ,
816 mock ,
917 pytest-vcr ,
1018 pytestCheckHook ,
1119 python-dateutil ,
12- pythonAtLeast ,
13- pythonOlder ,
14- requests ,
1520 vcrpy ,
1621} :
1722
@@ -20,16 +25,16 @@ buildPythonPackage rec {
2025 version = "0.51.0" ;
2126 pyproject = true ;
2227
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 =" ;
2833 } ;
2934
30- nativeBuildInputs = [ hatchling ] ;
35+ build-system = [ hatchling ] ;
3136
32- propagatedBuildInputs = [ requests ] ;
37+ dependencies = [ requests ] ;
3338
3439 __darwinAllowLocalNetworking = true ;
3540
@@ -54,6 +59,12 @@ buildPythonPackage rec {
5459 "test_default_settings_set"
5560 # https://github.com/DataDog/datadogpy/issues/746
5661 "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"
5768 ]
5869 ++ lib . optionals ( pythonAtLeast "3.13" ) [
5970 # https://github.com/DataDog/datadogpy/issues/880
@@ -62,11 +73,11 @@ buildPythonPackage rec {
6273
6374 pythonImportsCheck = [ "datadog" ] ;
6475
65- meta = with lib ; {
76+ meta = {
6677 description = "Datadog Python library" ;
6778 homepage = "https://github.com/DataDog/datadogpy" ;
6879 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 ] ;
7182 } ;
7283}
0 commit comments