2018-04-06 18:59:50 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
|
|
, decorator, requests, simplejson
|
|
|
|
, nose, mock }:
|
2018-03-31 12:40:01 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datadog";
|
2018-04-04 20:05:51 +02:00
|
|
|
version = "0.20.0";
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2018-04-06 18:59:50 +02:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
# https://github.com/DataDog/datadogpy/pull/259
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DataDog";
|
|
|
|
repo = "datadogpy";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1p4p14853yrsl8py4ca7za7a12qzw0xwgz64f5kzx8a6vpv3p3md";
|
2018-03-31 12:40:01 +02:00
|
|
|
};
|
|
|
|
|
2018-04-06 18:59:50 +02:00
|
|
|
propagatedBuildInputs = [ decorator requests simplejson ];
|
2018-03-31 12:40:01 +02:00
|
|
|
|
2018-04-06 18:59:50 +02:00
|
|
|
checkInputs = [ nose mock ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-31 12:40:01 +02:00
|
|
|
description = "The Datadog Python library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/DataDog/datadogpy;
|
|
|
|
};
|
|
|
|
}
|