2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mock,
|
|
|
|
psutil,
|
|
|
|
pyopenssl,
|
|
|
|
pysendfile,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyftpdlib";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.5.9";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Mj1MQvFAau203xj69oD2TzLAgP9m9sJgkLpZL1v8Sg8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ pysendfile ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-05-15 15:35:15 +00:00
|
|
|
ssl = [ pyopenssl ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
mock
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
# Impure filesystem-related tests cause timeouts
|
2020-04-24 23:36:52 +00:00
|
|
|
# on Hydra: https://hydra.nixos.org/build/84374861
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pyftpdlib" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "Asynchronous FTP server library";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/giampaolo/pyftpdlib/";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/giampaolo/pyftpdlib/blob/release-${version}/HISTORY.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "ftpbench";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|