8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
52 lines
990 B
Nix
52 lines
990 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, urllib3
|
|
, mock
|
|
, setuptools
|
|
, stone
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dropbox";
|
|
version = "11.28.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dropbox";
|
|
repo = "dropbox-sdk-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xNenBmeCRIYxQqAkV8IDpPpIHyVAYJs1jAFr8w1tz2Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
urllib3
|
|
mock
|
|
setuptools
|
|
stone
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'pytest-runner == 5.2.0'," ""
|
|
'';
|
|
|
|
# Set DROPBOX_TOKEN environment variable to a valid token.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dropbox"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for Dropbox's HTTP-based Core and Datastore APIs";
|
|
homepage = "https://github.com/dropbox/dropbox-sdk-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|