pythonPackages.datadog: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 12:40:01 +02:00 committed by Frederik Rietdijk
parent 921934f458
commit 15ae9cfeca
2 changed files with 22 additions and 18 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi
, pillow, tox, mock, six, nose, requests, decorator, simplejson }:
buildPythonPackage rec {
pname = "datadog";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "0y2if4jj43n5jis20imragvhhyhr840w4m1g7j7fxh9bn7h273zp";
};
buildInputs = [ pillow tox mock six nose ];
propagatedBuildInputs = [ requests decorator simplejson ];
meta = with stdenv.lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = https://github.com/DataDog/datadogpy;
};
}

View File

@ -1193,24 +1193,7 @@ in {
checkInputs = with self; [ pytest ];
};
datadog = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "datadog";
version = "0.10.0";
src = pkgs.fetchurl {
url = "mirror://pypi/d/${pname}/${name}.tar.gz";
sha256 = "0y2if4jj43n5jis20imragvhhyhr840w4m1g7j7fxh9bn7h273zp";
};
buildInputs = with self; [ pillow tox mock six nose ];
propagatedBuildInputs = with self; [ requests decorator simplejson ];
meta = {
description = "The Datadog Python library ";
license = licenses.bsd3;
homepage = https://github.com/DataDog/datadogpy;
};
};
datadog = callPackage ../development/python-modules/datadog {};
debian = buildPythonPackage rec {
name = "${pname}-${version}";