mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
64 lines
1.0 KiB
Nix
64 lines
1.0 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.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-/b4KrYg0mXoQJ/L+9ol7gD2myB0aLgDj0IWa8sxarKU=";
|
|
};
|
|
|
|
buildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aioftp
|
|
aiohttp
|
|
tqdm
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|