nixpkgs/pkgs/development/python-modules/parfive/default.nix

64 lines
1.0 KiB
Nix
Raw Normal View History

2019-07-15 16:15:26 +00:00
{ lib
, aiofiles
, aioftp
, aiohttp
, buildPythonPackage
, fetchPypi
, pytest-asyncio
2019-07-15 16:15:26 +00:00
, pytest-localserver
, pytest-socket
, pytestCheckHook
, pythonOlder
, setuptools-scm
, tqdm
2019-07-15 16:15:26 +00:00
}:
buildPythonPackage rec {
pname = "parfive";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-07-15 16:15:26 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "f36128e8a93f3494ce3de8af883eeba4bd651ab228682810a46ec4b7897a84b3";
2019-07-15 16:15:26 +00:00
};
buildInputs = [
setuptools-scm
2019-07-15 16:15:26 +00:00
];
propagatedBuildInputs = [
aioftp
aiohttp
tqdm
];
2019-07-15 16:15:26 +00:00
checkInputs = [
aiofiles
pytest-asyncio
2019-07-15 16:15:26 +00:00
pytest-localserver
pytest-socket
pytestCheckHook
2019-07-15 16:15:26 +00:00
];
disabledTests = [
# Requires network access
"test_ftp"
"test_ftp_pasv_command"
"test_ftp_http"
];
2019-07-15 16:15:26 +00:00
pythonImportsCheck = [
"parfive"
];
2019-07-15 16:15:26 +00:00
meta = with lib; {
description = "A HTTP and FTP parallel file downloader";
homepage = "https://parfive.readthedocs.io/";
2019-07-15 16:15:26 +00:00
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
2019-07-15 16:15:26 +00:00
};
}