2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, filelock
|
|
|
|
, requests
|
|
|
|
, tqdm
|
|
|
|
, setuptools
|
2021-04-08 16:26:57 +00:00
|
|
|
, six
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gdown";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.13.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-vh1NKRPk1e5cT3cVj8IrzmpaZ9yY2KtWrTGsCU9KkP4=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [ filelock requests tqdm setuptools six ];
|
2020-07-18 16:06:22 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|