2020-06-25 05:20:53 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, filelock
|
|
|
|
, requests
|
|
|
|
, tqdm
|
|
|
|
, setuptools
|
2021-04-07 21:07:09 +01:00
|
|
|
, six
|
2020-06-25 05:20:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gdown";
|
2020-08-29 12:41:48 +01:00
|
|
|
version = "3.12.2";
|
2020-06-25 05:20:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 12:41:48 +01:00
|
|
|
sha256 = "4b3a1301e57bfd8dce939bf25ef8fbb4b23967fd0f878eede328bdcc41386bac";
|
2020-06-25 05:20:53 +01:00
|
|
|
};
|
|
|
|
|
2021-04-07 21:07:09 +01:00
|
|
|
propagatedBuildInputs = [ filelock requests tqdm setuptools six ];
|
2020-06-25 05:20:53 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/gdown --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI tool for downloading large files from Google Drive";
|
|
|
|
homepage = "https://github.com/wkentaro/gdown";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ breakds ];
|
|
|
|
};
|
|
|
|
}
|