summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioftp/default.nix
blob: 1d2b32a73b9e01ce8e75cf1e12a508c41ef71584 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytest-asyncio
, pytestcov
, trustme
, async-timeout
}:

buildPythonPackage rec {
  pname = "aioftp";
  version = "0.13.0";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "5711c03433b510c101e9337069033133cca19b508b5162b414bed24320de6c18";
  };

  checkInputs = [
    pytest
    pytest-asyncio
    pytestcov
    trustme
    async-timeout
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Ftp client/server for asyncio";
    homepage = https://github.com/aio-libs/aioftp;
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}