Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.ftputil: fix tests on darwin #101263

Merged
merged 1 commit into from
Oct 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/ftputil/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }:
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }:

buildPythonPackage rec {
version = "4.0.0";
Expand All @@ -18,12 +18,15 @@ buildPythonPackage rec {
py.test test \
-k "not test_public_servers and not test_real_ftp \
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; {
description = "High-level FTP client library (virtual file system and more)";
homepage = "http://ftputil.sschwarzer.net/";
license = licenses.bsd2; # "Modified BSD license, says pypi"
homepage = "http://ftputil.sschwarzer.net/";
license = licenses.bsd2; # "Modified BSD license, says pypi"
};
}