2020-07-18 16:06:22 +00:00
|
|
|
{ lib
|
2021-12-26 17:43:05 +00:00
|
|
|
, beautifulsoup4
|
2020-07-18 16:06:22 +00:00
|
|
|
, 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";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "4.3.0";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-KswYue892Mlpa8wnPf9bt8MEJGtjGaMjlDt0TXGoEdE=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
filelock
|
|
|
|
requests
|
|
|
|
tqdm
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/gdown --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gdown"
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|