git-annex-remote-googledrive: add missing dependency and refactor (#340108)

This commit is contained in:
Sandro 2024-09-28 00:39:27 +02:00 committed by GitHub
commit d88947e917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 11 deletions

View File

@ -6,24 +6,29 @@
, gitpython
, humanfriendly
, tenacity
, setuptools
, distutils
}:
buildPythonApplication rec {
pname = "git-annex-remote-googledrive";
version = "1.3.2";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0rwjcdvfgzdlfgrn1rrqwwwiqqzyh114qddrbfwd46ld5spry6r1";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
annexremote
drivelib
gitpython
tenacity
humanfriendly
distutils
];
# while git-annex does come with a testremote command that *could* be used,
@ -36,7 +41,7 @@ buildPythonApplication rec {
meta = with lib; {
description = "Git-annex special remote for Google Drive";
homepage = "https://pypi.org/project/git-annex-remote-googledrive/";
homepage = "https://github.com/Lykos153/git-annex-remote-googledrive";
license = licenses.gpl3Only;
maintainers = with maintainers; [ gravndal ];
mainProgram = "git-annex-remote-googledrive";

View File

@ -2186,15 +2186,7 @@ with pkgs;
humanfriendly;
};
git-annex-remote-googledrive = callPackage ../applications/version-management/git-annex-remote-googledrive {
inherit (python3Packages)
buildPythonApplication
annexremote
drivelib
gitpython
tenacity
humanfriendly;
};
git-annex-remote-googledrive = python3Packages.callPackage ../applications/version-management/git-annex-remote-googledrive { };
git-annex-remote-rclone = callPackage ../applications/version-management/git-annex-remote-rclone { };