2018-03-02 03:41:20 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest }:
|
2018-03-02 03:27:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-03-02 03:41:20 +01:00
|
|
|
version = "3.4";
|
2018-03-02 03:27:11 +01:00
|
|
|
pname = "ftputil";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-02 03:41:20 +01:00
|
|
|
sha256 = "374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762";
|
2018-03-02 03:27:11 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 03:41:20 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
touch Makefile
|
2020-03-29 13:21:25 +02:00
|
|
|
# Disable tests that require network access or access /home or assume execution before year 2020
|
2018-03-02 03:41:20 +01:00
|
|
|
py.test test \
|
|
|
|
-k "not test_public_servers and not test_real_ftp \
|
2020-03-29 13:21:25 +02:00
|
|
|
and not test_set_parser and not test_repr \
|
|
|
|
and not test_conditional_upload and not test_conditional_download_with_older_target"
|
2018-03-02 03:41:20 +01:00
|
|
|
'';
|
2018-03-02 03:27:11 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "High-level FTP client library (virtual file system and more)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://ftputil.sschwarzer.net/";
|
2018-03-02 03:27:11 +01:00
|
|
|
license = licenses.bsd2; # "Modified BSD license, says pypi"
|
|
|
|
};
|
|
|
|
}
|