2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
expiringdict,
|
|
|
|
google-auth-httplib2,
|
|
|
|
google-auth-oauthlib,
|
|
|
|
google-api-python-client,
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "drivelib";
|
|
|
|
version = "0.3.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1bz3dn6wm9mlm2w8czwjmhvf3ws3iggr57hvd8z8acl1qafr2g4m";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-python-client
|
|
|
|
google-auth-oauthlib
|
|
|
|
google-auth-httplib2
|
|
|
|
expiringdict
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests depend on a google auth token
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "drivelib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Easy access to the most common Google Drive API calls";
|
|
|
|
homepage = "https://pypi.org/project/drivelib/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ gravndal ];
|
|
|
|
};
|
|
|
|
}
|