159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
expiringdict,
|
|
fetchPypi,
|
|
google-api-python-client,
|
|
google-auth-httplib2,
|
|
google-auth-oauthlib,
|
|
pythonOlder,
|
|
setuptools,
|
|
versioneer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "drivelib";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
expiringdict
|
|
google-api-python-client
|
|
google-auth-httplib2
|
|
google-auth-oauthlib
|
|
];
|
|
|
|
# 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://github.com/Lykos153/python-drivelib";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ gravndal ];
|
|
};
|
|
}
|