pythonPackages.dropbox: Move to own file

This commit is contained in:
Elis Hirwing 2018-04-03 15:12:22 +02:00 committed by Frederik Rietdijk
parent 9bbba780df
commit 681c0a21d8
2 changed files with 25 additions and 19 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytestrunner, requests, urllib3, mock, setuptools }:
buildPythonPackage rec {
pname = "dropbox";
version = "8.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0bixx80zjq0286dwm4zhg8bdhc8pqlrqy4n2jg7i6m6a4gv4gak5";
};
# Set DROPBOX_TOKEN environment variable to a valid token.
doCheck = false;
buildInputs = [ pytestrunner ];
propagatedBuildInputs = [ requests 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;
};
}

View File

@ -2203,25 +2203,7 @@ in {
urllib3 = callPackage ../development/python-modules/urllib3 {};
dropbox = buildPythonPackage rec {
name = "dropbox-${version}";
version = "8.0.0";
doCheck = false; # Set DROPBOX_TOKEN environment variable to a valid token.
src = pkgs.fetchurl {
url = "mirror://pypi/d/dropbox/${name}.tar.gz";
sha256 = "0bixx80zjq0286dwm4zhg8bdhc8pqlrqy4n2jg7i6m6a4gv4gak5";
};
buildInputs = with self; [ pytestrunner ];
propagatedBuildInputs = with self; [ requests urllib3 mock setuptools ];
meta = {
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 = callPackage ../development/python-modules/dropbox {};
ds4drv = callPackage ../development/python-modules/ds4drv {
inherit (pkgs) fetchFromGitHub bluez;