2019-07-15 17:15:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, tqdm
|
|
|
|
, aiohttp
|
|
|
|
, pytest
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2019-07-15 17:15:26 +01:00
|
|
|
, pytest-localserver
|
|
|
|
, pytest-socket
|
|
|
|
, pytest-asyncio
|
|
|
|
, aioftp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parfive";
|
2021-06-18 22:47:28 +01:00
|
|
|
version = "1.3.0";
|
2019-07-15 17:15:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:28 +01:00
|
|
|
sha256 = "c3067e6ca9d6fb88a10958338360bd9c47edfd8ab11098d4c601f7f2887edadd";
|
2019-07-15 17:15:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-03 11:09:11 +01:00
|
|
|
setuptools-scm
|
2019-07-15 17:15:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|