@@ -0,0 +1,33 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, mock
5+, psutil
6+, pyopenssl
7+, pysendfile
8+, python
9+}:
10+
11+buildPythonPackage rec {
12+ version = "1.5.4";
13+ pname = "pyftpdlib";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "e5fca613978743d41c3bfc68e25a811d646a3b8a9eee9eb07021daca89646a0f";
18+ };
19+
20+ checkInputs = [ mock psutil ];
21+ propagatedBuildInputs = [ pyopenssl pysendfile ];
22+
23+ checkPhase = ''
24+ ${python.interpreter} pyftpdlib/test/runner.py
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ homepage = https://github.com/giampaolo/pyftpdlib/;
29+ description = "Very fast asynchronous FTP server library";
30+ license = licenses.mit;
31+ maintainers = [ maintainers.costrouc ];
32+ };
33+}