1{ lib, buildPythonPackage, fetchFromGitHub 2, decorator, requests, simplejson 3, nose, mock }: 4 5buildPythonPackage rec { 6 pname = "datadog"; 7 version = "0.20.0"; 8 9 # no tests in PyPI tarball 10 # https://github.com/DataDog/datadogpy/pull/259 11 src = fetchFromGitHub { 12 owner = "DataDog"; 13 repo = "datadogpy"; 14 rev = "v${version}"; 15 sha256 = "1p4p14853yrsl8py4ca7za7a12qzw0xwgz64f5kzx8a6vpv3p3md"; 16 }; 17 18 propagatedBuildInputs = [ decorator requests simplejson ]; 19 20 checkInputs = [ nose mock ]; 21 22 # v0.20.0 tests are nondeterministic: 23 # test_send_batch_metrics: https://hydra.nixos.org/build/74920933 24 # test_timed_decorator_threaded: https://hydra.nixos.org/build/74328993 25 doCheck = false; 26 27 meta = with lib; { 28 description = "The Datadog Python library"; 29 license = licenses.bsd3; 30 homepage = https://github.com/DataDog/datadogpy; 31 }; 32}