1{
2 lib,
3 buildPythonPackage,
4 dvc,
5 fetchFromGitHub,
6 pydrive2,
7 pythonOlder,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "dvc-gdrive";
14 version = "3.0.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "iterative";
21 repo = "dvc-gdrive";
22 tag = version;
23 hash = "sha256-oqHSMmwfR24ydJlpXGI3cCxIlF0BwNdgje5zKa0c7FA=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 dvc
33 pydrive2
34 ];
35
36 # Circular dependency with dvc
37 doCheck = false;
38
39 pythonImportsCheck = [ "dvc_gdrive" ];
40
41 meta = with lib; {
42 description = "Google Drive plugin for DVC";
43 homepage = "https://github.com/iterative/dvc-gdrive";
44 changelog = "https://github.com/iterative/dvc-gdrive/releases/tag/${version}";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ fab ];
47 };
48}