nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 appdirs,
4 buildPythonPackage,
5 fetchPypi,
6 fsspec,
7 funcy,
8 google-api-python-client,
9 oauth2client,
10 pyopenssl,
11 pyyaml,
12 setuptools,
13 setuptools-scm,
14 tqdm,
15}:
16
17buildPythonPackage rec {
18 pname = "pydrive2";
19 version = "1.21.3";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-ZJuE1gxje8cUZIUDlTWqjxJUrRVkI3OfB+XTJQdEfBM=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
33 google-api-python-client
34 oauth2client
35 pyopenssl
36 pyyaml
37 ];
38
39 optional-dependencies = {
40 fsspec = [
41 appdirs
42 fsspec
43 funcy
44 tqdm
45 ];
46 };
47
48 # Tests require a account and network access
49 doCheck = false;
50
51 pythonImportsCheck = [ "pydrive2" ];
52
53 meta = {
54 description = "Google Drive API Python wrapper library";
55 homepage = "https://github.com/iterative/PyDrive2";
56 changelog = "https://github.com/iterative/PyDrive2/releases/tag/${version}";
57 # Not compatible with pyopenssl 24.3.0
58 # https://github.com/iterative/PyDrive2/issues/361
59 # TODO: re-enable it in `duplicity` when fixed
60 broken = true;
61 license = lib.licenses.asl20;
62 maintainers = with lib.maintainers; [ sei40kr ];
63 };
64}