mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
31 lines
694 B
Nix
31 lines
694 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, decorator, requests, simplejson, pillow
|
|
, nose, mock, pytest, freezegun }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "datadog";
|
|
version = "0.35.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0qpy6mg9gfjxvjms0aaglzayhmdds4agv0lh05g2mkfw620nm8zl";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|