Files
nixpkgs/pkgs/development/python-modules/pyftpdlib/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mock,
psutil,
pyopenssl,
pysendfile,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyftpdlib";
version = "1.5.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-jb3rEhW8ui+3SNrjH/2xqwCFQMKNE7NwThePNooIcSg=";
};
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 = [ ];
mainProgram = "ftpbench";
};
}