pythonPackages.datadog: fix build

This commit is contained in:
Jonathan Ringer 2020-08-16 21:27:13 -07:00
parent a8cb29732d
commit c1432308b8
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi
, decorator, requests, simplejson, pillow
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, decorator, requests, simplejson, pillow, typing
, nose, mock, pytest, freezegun }:
buildPythonPackage rec {
@ -15,7 +15,8 @@ buildPythonPackage rec {
find . -name '*.pyc' -exec rm {} \;
'';
propagatedBuildInputs = [ decorator requests simplejson pillow ];
propagatedBuildInputs = [ decorator requests simplejson pillow ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
checkInputs = [ nose mock pytest freezegun ];
checkPhase = ''