at 22.05-pre 1.1 kB view raw
1{ lib 2, aiofiles 3, aioftp 4, aiohttp 5, buildPythonPackage 6, fetchPypi 7, pytest-asyncio 8, pytest-localserver 9, pytest-socket 10, pytestCheckHook 11, pythonOlder 12, setuptools-scm 13, tqdm 14}: 15 16buildPythonPackage rec { 17 pname = "parfive"; 18 version = "1.5.0"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "f36128e8a93f3494ce3de8af883eeba4bd651ab228682810a46ec4b7897a84b3"; 26 }; 27 28 buildInputs = [ 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 aioftp 34 aiohttp 35 tqdm 36 ]; 37 38 checkInputs = [ 39 aiofiles 40 pytest-asyncio 41 pytest-localserver 42 pytest-socket 43 pytestCheckHook 44 ]; 45 46 disabledTests = [ 47 # Requires network access 48 "test_ftp" 49 "test_ftp_pasv_command" 50 "test_ftp_http" 51 ]; 52 53 pythonImportsCheck = [ 54 "parfive" 55 ]; 56 57 meta = with lib; { 58 description = "A HTTP and FTP parallel file downloader"; 59 homepage = "https://parfive.readthedocs.io/"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ costrouc ]; 62 }; 63}