2019-07-15 17:15:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, tqdm
|
|
|
|
, aiohttp
|
|
|
|
, pytest
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest-localserver
|
|
|
|
, pytest-socket
|
|
|
|
, pytest-asyncio
|
|
|
|
, aioftp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parfive";
|
2020-11-29 14:04:35 +00:00
|
|
|
version = "1.2.0";
|
2019-07-15 17:15:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:35 +00:00
|
|
|
sha256 = "118a0994bbb9536fd4574995a8485b6c4b97db247c55bc86ae4f4ae8fd9b0add";
|
2019-07-15 17:15:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
tqdm
|
|
|
|
aiohttp
|
|
|
|
aioftp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-localserver
|
|
|
|
pytest-socket
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# these two tests require network connection
|
|
|
|
pytest parfive -k "not test_ftp and not test_ftp_http"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A HTTP and FTP parallel file downloader";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://parfive.readthedocs.io/";
|
2019-07-15 17:15:26 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|