2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, urllib3
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "downloader-cli";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.3.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepjyoti30";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-Dl5XIvdZInz+edL9uQv7V6Kc6FB+7hFAGe/nybnqvQU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
urllib3
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
# Disable checks due to networking (Errno 101)
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"downloader_cli"
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Downloader with an awesome customizable progressbar";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/deepjyoti30/downloader-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ j0hax ];
|
|
|
|
};
|
|
|
|
}
|