2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, aiofiles
|
|
|
|
, aioftp
|
|
|
|
, aiohttp
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytest-asyncio
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-localserver
|
|
|
|
, pytest-socket
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
, tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parfive";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-zWy0GSQhMHMM9B1M9vKE6/UPGnHObJUI4EZ+yY8X3I4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aioftp
|
2021-12-06 16:07:01 +00:00
|
|
|
aiohttp
|
|
|
|
tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
aiofiles
|
|
|
|
pytest-asyncio
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-localserver
|
|
|
|
pytest-socket
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Requires network access
|
|
|
|
"test_ftp"
|
|
|
|
"test_ftp_pasv_command"
|
|
|
|
"test_ftp_http"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"parfive"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A HTTP and FTP parallel file downloader";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "parfive";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://parfive.readthedocs.io/";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|