add pythonPackages.dropbox

This commit is contained in:
Domen Kozar 2014-03-12 17:48:04 +01:00
parent 4640a6b9db
commit 03c6c1608b

View File

@ -1505,6 +1505,49 @@ rec {
};
};
urllib3 = buildPythonPackage rec {
name = "urllib3-1.8";
src = fetchurl {
url = "https://pypi.python.org/packages/source/u/urllib3/${name}.tar.gz";
sha256 = "0pdigfxkq8mhzxxsn6isx8c4h9azqywr1k18yanwyxyj8cdzm28s";
};
preConfigure = ''
substituteInPlace test-requirements.txt --replace 'nose==1.3' 'nose'
'';
checkPhase = ''
nosetests --cover-min-percentage 70
'';
buildInputs = [ coverage tornado mock nose ];
meta = with stdenv.lib; {
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
homepage = https://www.dropbox.com/developers/core/docs;
license = licenses.mit;
};
};
dropbox = buildPythonPackage rec {
name = "dropbox-2.0.0";
src = fetchurl {
url = "https://pypi.python.org/packages/source/d/dropbox/${name}.zip";
sha256 = "1bi2z1lql6ryylfflmizhqn98ab55777vn7n5krhqz40pdcjilkx";
};
propagatedBuildInputs = [ urllib3 mock setuptools ];
meta = with stdenv.lib; {
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
homepage = https://www.dropbox.com/developers/core/docs;
license = licenses.mit;
};
};
evdev = buildPythonPackage rec {
version = "0.3.2";