pythonPackages.datadog: fix tests

This commit is contained in:
Jonathan Ringer 2019-10-27 08:17:49 -07:00 committed by Jon
parent 62c81282c4
commit 421ec19144

View File

@ -1,8 +1,6 @@
{ lib, buildPythonPackage, fetchPypi { lib, buildPythonPackage, fetchPypi
, decorator, requests, simplejson , decorator, requests, simplejson, pillow
, nose, mock , nose, mock, pytest }:
, pillow
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "datadog"; pname = "datadog";
@ -17,9 +15,12 @@ buildPythonPackage rec {
find . -name '*.pyc' -exec rm {} \; find . -name '*.pyc' -exec rm {} \;
''; '';
propagatedBuildInputs = [ decorator requests simplejson ]; propagatedBuildInputs = [ decorator requests simplejson pillow ];
checkInputs = [ nose mock pillow ]; checkInputs = [ nose mock pytest ];
checkPhase = ''
pytest tests/unit
'';
meta = with lib; { meta = with lib; {
description = "The Datadog Python library"; description = "The Datadog Python library";