3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dropbox/default.nix
2021-08-27 03:26:46 +00:00

32 lines
832 B
Nix

{ lib, buildPythonPackage, fetchPypi
, requests, urllib3, mock, setuptools, stone }:
buildPythonPackage rec {
pname = "dropbox";
version = "11.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "fa512c87521809e93502fc6a27b1d57ffbcef2281468c8f93575eab6a9ad5f05";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner == 5.2.0'," ""
'';
propagatedBuildInputs = [ requests urllib3 mock setuptools stone ];
# Set DROPBOX_TOKEN environment variable to a valid token.
doCheck = false;
pythonImportsCheck = [ "dropbox" ];
meta = with 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;
maintainers = with maintainers; [ ];
};
}