567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
expiringdict,
|
|
fetchPypi,
|
|
google-api-python-client,
|
|
google-auth,
|
|
google-auth-httplib2,
|
|
google-auth-oauthlib,
|
|
oauth2client,
|
|
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
|
|
google-auth-httplib2
|
|
google-auth-oauthlib
|
|
oauth2client
|
|
];
|
|
|
|
# Tests depend on a google auth token
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "drivelib" ];
|
|
|
|
meta = {
|
|
description = "Easy access to the most common Google Drive API calls";
|
|
homepage = "https://github.com/Lykos153/python-drivelib";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ gravndal ];
|
|
};
|
|
}
|