2022-01-25 03:21:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-python-client
|
|
|
|
, oauth2client
|
|
|
|
, pyopenssl
|
|
|
|
, pyyaml
|
2022-12-17 10:02:37 +00:00
|
|
|
, pythonOlder
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydrive2";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.16.1";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "PyDrive2";
|
|
|
|
inherit version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-chBTXoNyiWpEcCxCQKop1GELAyWyX5TN0H1P7A/ScFM=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-python-client
|
|
|
|
oauth2client
|
|
|
|
pyopenssl
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydrive2"
|
|
|
|
];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Drive API Python wrapper library";
|
2022-01-25 03:21:06 +00:00
|
|
|
homepage = "https://github.com/iterative/PyDrive2";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/iterative/PyDrive2/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ sei40kr ];
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
}
|