python3Packages.dropbox: update meta

This commit is contained in:
Fabian Affolter 2022-01-26 08:53:33 +01:00 committed by GitHub
parent 0438825730
commit 774318d795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,20 @@
{ lib, buildPythonPackage, fetchFromGitHub
, requests, urllib3, mock, setuptools, stone }:
{ 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";
@ -12,21 +23,29 @@ buildPythonPackage rec {
sha256 = "0ncx41jg2wbsklqkrh0zjwjs3kfkscz8d6gcbsxqa1qpa3pa5519";
};
propagatedBuildInputs = [
requests
urllib3
mock
setuptools
stone
];
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" ];
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";
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; [ ];
};