Skip to content

Commit

Permalink
python312Packages.drivelib: refactor (NixOS#340065)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Sep 6, 2024
2 parents 39ffb3c + 4ba7c4d commit 2fe6f88
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions pkgs/development/python-modules/drivelib/default.nix
Original file line number Diff line number Diff line change
@@ -1,38 +1,53 @@
{
lib,
buildPythonPackage,
fetchPypi,
expiringdict,
fetchPypi,
google-api-python-client,
google-auth-httplib2,
google-auth-oauthlib,
google-api-python-client,
pythonOlder,
setuptools,
versioneer,
}:

buildPythonPackage rec {
pname = "drivelib";
version = "0.3.0";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
sha256 = "1bz3dn6wm9mlm2w8czwjmhvf3ws3iggr57hvd8z8acl1qafr2g4m";
hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468=";
};

propagatedBuildInputs = [
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';

build-system = [
setuptools
versioneer
];

dependencies = [
expiringdict
google-api-python-client
google-auth-oauthlib
google-auth-httplib2
expiringdict
google-auth-oauthlib
];

# tests depend on a google auth token
# 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/";
homepage = "https://github.com/Lykos153/python-drivelib";
license = licenses.gpl3Only;
maintainers = with maintainers; [ gravndal ];
};
Expand Down

0 comments on commit 2fe6f88

Please sign in to comment.