depot/third_party/nixpkgs/pkgs/development/python-modules/pyftpdlib/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mock,
psutil,
pyopenssl,
pysendfile,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyftpdlib";
version = "1.5.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Mj1MQvFAau203xj69oD2TzLAgP9m9sJgkLpZL1v8Sg8=";
};
build-system = [ setuptools ];
dependencies = [ pysendfile ];
passthru.optional-dependencies = {
ssl = [ pyopenssl ];
};
nativeCheckInputs = [
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/";
changelog = "https://github.com/giampaolo/pyftpdlib/blob/release-${version}/HISTORY.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "ftpbench";
};
}