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.7.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-NH8jdpZ5qvfvpz5WVScPzajKVr5l64Skoh0UOYlUEEU=";
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 changelog = "https://github.com/wkentaro/gdown/releases/tag/v${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ breakds ];
48 };
49}