mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
9d2160e73b
Although the tests are passing locally, it seems as the excessive filesystem usage causes several build failures and timeouts in the Hydra and OfBorg infrastructure: * https://hydra.nixos.org/build/84374861 (python3 on linux.x86_64) * https://hydra.nixos.org/build/84368459 (python2 on linux.x86_64) Some of these tests are failing after several seconds though, but I couldn't identify a pattern and I'm not overly surprised that a FTP library has impure tests. However the API seems to be usable in a Python {2,3} environment, so it should be safe to use even with disabled tests.
34 lines
736 B
Nix
34 lines
736 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, psutil
|
|
, pyopenssl
|
|
, pysendfile
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.5.4";
|
|
pname = "pyftpdlib";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e5fca613978743d41c3bfc68e25a811d646a3b8a9eee9eb07021daca89646a0f";
|
|
};
|
|
|
|
checkInputs = [ mock psutil ];
|
|
propagatedBuildInputs = [ pyopenssl pysendfile ];
|
|
|
|
# impure filesystem-related tests cause timeouts
|
|
# on Hydra: https://hydra.nixos.org/build/84374861
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/giampaolo/pyftpdlib/;
|
|
description = "Very fast asynchronous FTP server library";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|