1{ lib
2, beautifulsoup4
3, buildPythonPackage
4, fetchPypi
5, filelock
6, requests
7, tqdm
8, setuptools
9, six
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "gdown";
15 version = "4.5.3";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-bL991BCFiMc0qliBMdjh1S5k8Ic4cPcfdMusGV8MYO8=";
23 };
24
25 propagatedBuildInputs = [
26 beautifulsoup4
27 filelock
28 requests
29 tqdm
30 setuptools
31 six
32 ] ++ requests.optional-dependencies.socks;
33
34 checkPhase = ''
35 $out/bin/gdown --help > /dev/null
36 '';
37
38 pythonImportsCheck = [
39 "gdown"
40 ];
41
42 meta = with lib; {
43 description = "A CLI tool for downloading large files from Google Drive";
44 homepage = "https://github.com/wkentaro/gdown";
45 license = licenses.mit;
46 maintainers = with maintainers; [ breakds ];
47 };
48}