mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
python39Packages.dropbox: remove pytest-runner, update meta, add import check
This commit is contained in:
parent
b1a6eebcb7
commit
7670dd4b7e
@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytest-runner, requests, urllib3, mock, setuptools, stone }:
|
||||
, requests, urllib3, mock, setuptools, stone }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dropbox";
|
||||
@ -12,18 +12,20 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner == 5.2.0" "pytest-runner"
|
||||
--replace "'pytest-runner == 5.2.0'," ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests urllib3 mock setuptools stone ];
|
||||
|
||||
# Set DROPBOX_TOKEN environment variable to a valid token.
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ pytest-runner ];
|
||||
propagatedBuildInputs = [ requests urllib3 mock setuptools stone ];
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user