nixpkgs/pkgs/development/python-modules/dropbox/default.nix
2021-09-09 04:00:12 +00:00

32 lines
832 B
Nix

{ lib, buildPythonPackage, fetchPypi
, requests, urllib3, mock, setuptools, stone }:
buildPythonPackage rec {
pname = "dropbox";
version = "11.19.0";
src = fetchPypi {
inherit pname version;
sha256 = "a56d200c47d7cd19f697e232a616342b224079f43abf4748bc55fb0c1de4346f";
};
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; [ ];
};
}