Merge pull request #101263 from SuperSandro2000/ftputil-mac

python3Packages.ftputil: fix tests on darwin
This commit is contained in:
Martin Weinelt 2020-10-23 18:33:33 +02:00 committed by GitHub
commit cf068be825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }: { stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.0.0"; version = "4.0.0";
@ -18,12 +18,15 @@ buildPythonPackage rec {
py.test test \ py.test test \
-k "not test_public_servers and not test_real_ftp \ -k "not test_public_servers and not test_real_ftp \
and not test_set_parser and not test_repr \ and not test_set_parser and not test_repr \
and not test_conditional_upload and not test_conditional_download_with_older_target" and not test_conditional_upload and not test_conditional_download_with_older_target \
''; ''
# need until https://ftputil.sschwarzer.net/trac/ticket/140#ticket is fixed
+ lib.optionalString stdenv.isDarwin ''and not test_error_message_reuse''
+ ''"'';
meta = with lib; { meta = with lib; {
description = "High-level FTP client library (virtual file system and more)"; description = "High-level FTP client library (virtual file system and more)";
homepage = "http://ftputil.sschwarzer.net/"; homepage = "http://ftputil.sschwarzer.net/";
license = licenses.bsd2; # "Modified BSD license, says pypi" license = licenses.bsd2; # "Modified BSD license, says pypi"
}; };
} }