Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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 = 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 ];
|
|
};
|
|
}
|