Unverified Commit d88947e9 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents ab95fe07 8ce786ec
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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";
+1 −9
Original line number Diff line number Diff line
@@ -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 { };