python310Packages.pyftpdlib: disable on older Python releases

- update meta
- add optional-dependencies
- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-10-06 09:34:52 +02:00 committed by GitHub
parent 46c341170f
commit 46b344748b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,28 +5,48 @@
, psutil
, pyopenssl
, pysendfile
, pythonOlder
}:
buildPythonPackage rec {
version = "1.5.7";
pname = "pyftpdlib";
version = "1.5.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fqPOQTfbggmvH2ueoCBZD0YsY+18ehJAvVluTTp7ZW4=";
hash = "sha256-fqPOQTfbggmvH2ueoCBZD0YsY+18ehJAvVluTTp7ZW4=";
};
checkInputs = [ mock psutil ];
propagatedBuildInputs = [ pyopenssl pysendfile ];
propagatedBuildInputs = [
pysendfile
];
# impure filesystem-related tests cause timeouts
passthru.optional-dependencies = {
ssl = [
pyopenssl
];
};
checkInputs = [
mock
psutil
];
# Impure filesystem-related tests cause timeouts
# on Hydra: https://hydra.nixos.org/build/84374861
doCheck = false;
pythonImportsCheck = [
"pyftpdlib"
];
meta = with lib; {
description = "Asynchronous FTP server library";
homepage = "https://github.com/giampaolo/pyftpdlib/";
description = "Very fast asynchronous FTP server library";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}