python310Packages.pyftpdlib: disable on older Python releases

- update meta
- add optional-dependencies
- add pythonImportsCheck

authored by

Fabian Affolter and committed by
GitHub
46b34474 46c34117

+27 -7
+27 -7
pkgs/development/python-modules/pyftpdlib/default.nix
··· 5 5 , psutil 6 6 , pyopenssl 7 7 , pysendfile 8 + , pythonOlder 8 9 }: 9 10 10 11 buildPythonPackage rec { 12 + pname = "pyftpdlib"; 11 13 version = "1.5.7"; 12 - pname = "pyftpdlib"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 13 17 14 18 src = fetchPypi { 15 19 inherit pname version; 16 - sha256 = "sha256-fqPOQTfbggmvH2ueoCBZD0YsY+18ehJAvVluTTp7ZW4="; 20 + hash = "sha256-fqPOQTfbggmvH2ueoCBZD0YsY+18ehJAvVluTTp7ZW4="; 17 21 }; 18 22 19 - checkInputs = [ mock psutil ]; 20 - propagatedBuildInputs = [ pyopenssl pysendfile ]; 23 + propagatedBuildInputs = [ 24 + pysendfile 25 + ]; 21 26 22 - # impure filesystem-related tests cause timeouts 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 23 39 # on Hydra: https://hydra.nixos.org/build/84374861 24 40 doCheck = false; 25 41 42 + pythonImportsCheck = [ 43 + "pyftpdlib" 44 + ]; 45 + 26 46 meta = with lib; { 47 + description = "Asynchronous FTP server library"; 27 48 homepage = "https://github.com/giampaolo/pyftpdlib/"; 28 - description = "Very fast asynchronous FTP server library"; 29 49 license = licenses.mit; 30 - maintainers = [ maintainers.costrouc ]; 50 + maintainers = with maintainers; [ costrouc ]; 31 51 }; 32 52 }