diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-06 00:15:25 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-06 00:15:25 +0100 |
commit | 2f5a4daf0c830380a54d9d35da4f79f20b5f9794 (patch) | |
tree | ea0bf8c1b4bf2974b086061785ad8ea72792e9a6 /pkgs | |
parent | d2c613620d7676d51a030edbc67cc39683a7867b (diff) |
python3Packages.parfive: disable on older Python releases
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/parfive/default.nix | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/parfive/default.nix b/pkgs/development/python-modules/parfive/default.nix index 25a8b6eecb083..822ae2113b2a3 100644 --- a/pkgs/development/python-modules/parfive/default.nix +++ b/pkgs/development/python-modules/parfive/default.nix @@ -1,20 +1,24 @@ { lib -, buildPythonPackage -, fetchPypi -, setuptools-scm +, aiofiles , aioftp , aiohttp -, tqdm -, aiofiles -, pytestCheckHook +, buildPythonPackage +, fetchPypi +, pytest-asyncio , pytest-localserver , pytest-socket -, pytest-asyncio +, pytestCheckHook +, pythonOlder +, setuptools-scm +, tqdm }: buildPythonPackage rec { pname = "parfive"; version = "1.5.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; @@ -26,13 +30,9 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - tqdm - aiohttp aioftp - ]; - - pythonImportsCheck = [ - "parfive" + aiohttp + tqdm ]; checkInputs = [ @@ -44,15 +44,20 @@ buildPythonPackage rec { ]; 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 = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |