about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyftpdlib/default.nix
blob: 5ff81a268f2eabedaf2b4e97e1b2e7d5d0767c61 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, buildPythonPackage
, fetchPypi
, mock
, psutil
, pyopenssl
, pysendfile
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyftpdlib";
  version = "1.5.9";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Mj1MQvFAau203xj69oD2TzLAgP9m9sJgkLpZL1v8Sg8=";
  };

  propagatedBuildInputs = [
    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";
    mainProgram = "ftpbench";
    homepage = "https://github.com/giampaolo/pyftpdlib/";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}