From e110d297c3cecca9e6e916e6b487bf0aa91b7a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 6 Apr 2018 18:59:50 +0200 Subject: [PATCH] python.pkgs.datadog: fix build --- .../python-modules/datadog/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/datadog/default.nix b/pkgs/development/python-modules/datadog/default.nix index 7b07f343d21f..35d830f81b58 100644 --- a/pkgs/development/python-modules/datadog/default.nix +++ b/pkgs/development/python-modules/datadog/default.nix @@ -1,19 +1,25 @@ -{ stdenv, buildPythonPackage, fetchPypi -, pillow, tox, mock, six, nose, requests, decorator, simplejson }: +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k +, decorator, requests, simplejson +, nose, mock }: buildPythonPackage rec { pname = "datadog"; version = "0.20.0"; - src = fetchPypi { - inherit pname version; - sha256 = "7bb4af836d7422a6138f983b81c16acd56c2d608913982602856cc273ae74768"; + # no tests in PyPI tarball + # https://github.com/DataDog/datadogpy/pull/259 + src = fetchFromGitHub { + owner = "DataDog"; + repo = "datadogpy"; + rev = "v${version}"; + sha256 = "1p4p14853yrsl8py4ca7za7a12qzw0xwgz64f5kzx8a6vpv3p3md"; }; - buildInputs = [ pillow tox mock six nose ]; - propagatedBuildInputs = [ requests decorator simplejson ]; + propagatedBuildInputs = [ decorator requests simplejson ]; - meta = with stdenv.lib; { + checkInputs = [ nose mock ]; + + meta = with lib; { description = "The Datadog Python library"; license = licenses.bsd3; homepage = https://github.com/DataDog/datadogpy;