73a29e0b97
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
52 lines
991 B
Nix
52 lines
991 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, urllib3
|
|
, mock
|
|
, setuptools
|
|
, stone
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dropbox";
|
|
version = "11.26.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dropbox";
|
|
repo = "dropbox-sdk-python";
|
|
rev = "v${version}";
|
|
sha256 = "0ncx41jg2wbsklqkrh0zjwjs3kfkscz8d6gcbsxqa1qpa3pa5519";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|