2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
filelock,
|
|
|
|
requests,
|
|
|
|
tqdm,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
pythonOlder,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
pname = "gdown";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.2.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-IUUWUGLYVSCjzZizVsntUixeeYTUCFNUCf1G+U3vx4c=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
filelock
|
|
|
|
requests
|
|
|
|
tqdm
|
|
|
|
setuptools
|
|
|
|
six
|
2022-10-21 18:38:19 +00:00
|
|
|
] ++ requests.optional-dependencies.socks;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/gdown --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gdown" ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CLI tool for downloading large files from Google Drive";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gdown";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/wkentaro/gdown";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/wkentaro/gdown/releases/tag/v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ breakds ];
|
|
|
|
};
|
|
|
|
}
|