nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 annexremote,
4 buildPythonApplication,
5 drivelib,
6 fetchPypi,
7 gitpython,
8 humanfriendly,
9 tenacity,
10 setuptools,
11 distutils,
12}:
13
14buildPythonApplication rec {
15 pname = "git-annex-remote-googledrive";
16 version = "1.3.2";
17 pyproject = true;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "0rwjcdvfgzdlfgrn1rrqwwwiqqzyh114qddrbfwd46ld5spry6r1";
22 };
23
24 build-system = [ setuptools ];
25
26 propagatedBuildInputs = [
27 annexremote
28 drivelib
29 gitpython
30 tenacity
31 humanfriendly
32 distutils
33 ];
34
35 # while git-annex does come with a testremote command that *could* be used,
36 # testing this special remote obviously depends on authenticating with google
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "git_annex_remote_googledrive"
41 ];
42
43 meta = with lib; {
44 description = "Git-annex special remote for Google Drive";
45 homepage = "https://github.com/Lykos153/git-annex-remote-googledrive";
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ gravndal ];
48 mainProgram = "git-annex-remote-googledrive";
49 };
50}