forked from mirrors/nixpkgs
31 lines
706 B
Nix
31 lines
706 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, decorator, requests, simplejson, pillow
|
|
, nose, mock, pytest, freezegun }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "datadog";
|
|
version = "0.38.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "401cd1dcf2d5de05786016a1c790bff28d1428d12ae1dbe11485f9cb5502939b";
|
|
};
|
|
|
|
postPatch = ''
|
|
find . -name '*.pyc' -exec rm {} \;
|
|
'';
|
|
|
|
propagatedBuildInputs = [ decorator requests simplejson pillow ];
|
|
|
|
checkInputs = [ nose mock pytest freezegun ];
|
|
checkPhase = ''
|
|
pytest tests/unit
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The Datadog Python library";
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/DataDog/datadogpy";
|
|
};
|
|
}
|