Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 948 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, freezegun }: 2 3buildPythonPackage rec { 4 version = "4.0.0"; 5 pname = "ftputil"; 6 disabled = pythonOlder "3.6"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "d494c47f24fd3f8fbe92d40d90e0902c0e04288f200688af2b16d6b46fe441e1"; 11 }; 12 13 checkInputs = [ pytest freezegun ]; 14 15 checkPhase = '' 16 touch Makefile 17 # Disable tests that require network access or access /home or assume execution before year 2020 18 py.test test \ 19 -k "not test_public_servers and not test_real_ftp \ 20 and not test_set_parser and not test_repr \ 21 and not test_conditional_upload and not test_conditional_download_with_older_target" 22 ''; 23 24 meta = with lib; { 25 description = "High-level FTP client library (virtual file system and more)"; 26 homepage = "http://ftputil.sschwarzer.net/"; 27 license = licenses.bsd2; # "Modified BSD license, says pypi" 28 }; 29}