depot/third_party/nixpkgs/pkgs/development/python-modules/parfive/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

64 lines
1 KiB
Nix

{ lib
, aiofiles
, aioftp
, aiohttp
, buildPythonPackage
, fetchPypi
, pytest-asyncio
, pytest-localserver
, pytest-socket
, pytestCheckHook
, pythonOlder
, setuptools-scm
, tqdm
}:
buildPythonPackage rec {
pname = "parfive";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zWy0GSQhMHMM9B1M9vKE6/UPGnHObJUI4EZ+yY8X3I4=";
};
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
aioftp
aiohttp
tqdm
];
nativeCheckInputs = [
aiofiles
pytest-asyncio
pytest-localserver
pytest-socket
pytestCheckHook
];
disabledTests = [
# Requires network access
"test_ftp"
"test_ftp_pasv_command"
"test_ftp_http"
];
pythonImportsCheck = [
"parfive"
];
meta = with lib; {
description = "A HTTP and FTP parallel file downloader";
mainProgram = "parfive";
homepage = "https://parfive.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}