1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 10:10:37 +03:00
nixpkgs/pkgs/development/python-modules/parfive/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1 KiB
Nix
Raw Normal View History

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