mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-25 10:36:36 +03:00
python3Packages.parfive: fix tests, add imports check
This commit is contained in:
parent
f386939ca1
commit
703aa3a94f
1 changed files with 20 additions and 13 deletions
|
@ -1,14 +1,15 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, tqdm
|
|
||||||
, aiohttp
|
|
||||||
, pytest
|
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
, aioftp
|
||||||
|
, aiohttp
|
||||||
|
, tqdm
|
||||||
|
, aiofiles
|
||||||
|
, pytestCheckHook
|
||||||
, pytest-localserver
|
, pytest-localserver
|
||||||
, pytest-socket
|
, pytest-socket
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, aioftp
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -30,17 +31,23 @@ buildPythonPackage rec {
|
||||||
aioftp
|
aioftp
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
pythonImportsCheck = [
|
||||||
pytest
|
"parfive"
|
||||||
pytest-localserver
|
|
||||||
pytest-socket
|
|
||||||
pytest-asyncio
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
# these two tests require network connection
|
aiofiles
|
||||||
pytest parfive -k "not test_ftp and not test_ftp_http"
|
pytest-asyncio
|
||||||
'';
|
pytest-localserver
|
||||||
|
pytest-socket
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_ftp"
|
||||||
|
"test_ftp_pasv_command"
|
||||||
|
"test_ftp_http"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A HTTP and FTP parallel file downloader";
|
description = "A HTTP and FTP parallel file downloader";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue