1{ lib 2, buildPythonPackage 3, fetchPypi 4, mock 5, psutil 6, pyopenssl 7, pysendfile 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pyftpdlib"; 13 version = "1.5.7"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-fqPOQTfbggmvH2ueoCBZD0YsY+18ehJAvVluTTp7ZW4="; 21 }; 22 23 propagatedBuildInputs = [ 24 pysendfile 25 ]; 26 27 passthru.optional-dependencies = { 28 ssl = [ 29 pyopenssl 30 ]; 31 }; 32 33 checkInputs = [ 34 mock 35 psutil 36 ]; 37 38 # Impure filesystem-related tests cause timeouts 39 # on Hydra: https://hydra.nixos.org/build/84374861 40 doCheck = false; 41 42 pythonImportsCheck = [ 43 "pyftpdlib" 44 ]; 45 46 meta = with lib; { 47 description = "Asynchronous FTP server library"; 48 homepage = "https://github.com/giampaolo/pyftpdlib/"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ costrouc ]; 51 }; 52}