From 989ec1afaaf8604493e4b651dc0c02c229e2c1a6 Mon Sep 17 00:00:00 2001 From: Gaute Ravndal Date: Fri, 6 Sep 2024 15:50:04 +0200 Subject: [PATCH 1/2] git-annex-remote-googledrive: modernise --- .../git-annex-remote-googledrive/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix b/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix index 72c0e48275ca..51ca2dbba4a9 100644 --- a/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix +++ b/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix @@ -6,18 +6,21 @@ , gitpython , humanfriendly , tenacity +, setuptools }: 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 @@ -36,7 +39,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"; From 8ce786ec86be946643567fbfeff9fb44251d77b3 Mon Sep 17 00:00:00 2001 From: Gaute Ravndal Date: Fri, 6 Sep 2024 15:50:19 +0200 Subject: [PATCH 2/2] git-annex-remote-googledrive: add missing distutils dependency --- .../git-annex-remote-googledrive/default.nix | 2 ++ pkgs/top-level/all-packages.nix | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix b/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix index 51ca2dbba4a9..03bd655adcdc 100644 --- a/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix +++ b/pkgs/applications/version-management/git-annex-remote-googledrive/default.nix @@ -7,6 +7,7 @@ , humanfriendly , tenacity , setuptools +, distutils }: buildPythonApplication rec { @@ -27,6 +28,7 @@ buildPythonApplication rec { gitpython tenacity humanfriendly + distutils ]; # while git-annex does come with a testremote command that *could* be used, diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 283595a80944..aace7cf18ea9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2211,15 +2211,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 { };