depot/third_party/nixpkgs/pkgs/development/python-modules/parfive/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

63 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.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kIIR+cXLUtyLJ5YmhyCV88zhXahok/U7QXbezt3PyF0=";
};
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";
homepage = "https://parfive.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}