mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
python310Packages.pyftpdlib: disable on older Python releases
- update meta - add optional-dependencies - add pythonImportsCheck
This commit is contained in:
parent
46c341170f
commit
46b344748b
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user