python311Packages.pydrive2: set build system
- add optional-dependencies
This commit is contained in:
parent
1b699df059
commit
65e182561b
1 changed files with 24 additions and 3 deletions
|
@ -1,19 +1,25 @@
|
|||
{ lib
|
||||
, appdirs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fsspec
|
||||
, funcy
|
||||
, google-api-python-client
|
||||
, oauth2client
|
||||
, pyopenssl
|
||||
, pyyaml
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydrive2";
|
||||
version = "1.19.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "PyDrive2";
|
||||
|
@ -21,6 +27,11 @@ buildPythonPackage rec {
|
|||
hash = "sha256-Ia6n2idjXCw/cFDgICBhkfOwMFxlUDFebo491Sb4tTE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
google-api-python-client
|
||||
oauth2client
|
||||
|
@ -28,6 +39,16 @@ buildPythonPackage rec {
|
|||
pyyaml
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
fsspec = [
|
||||
appdirs
|
||||
fsspec
|
||||
funcy
|
||||
tqdm
|
||||
];
|
||||
};
|
||||
|
||||
# Tests require a account and network access
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
|
Loading…
Reference in a new issue