summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/waitress/default.nix
blob: eb05353933e9a23b6e2b46e133fe1787ee389f44 (plain)
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
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pytestCheckHook,
  pytest-cov-stub,
}:

buildPythonPackage rec {
  pname = "waitress";
  version = "3.0.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-aCqq8q8MRK2kq/tw3tNjk/DjB/SrlFaiFc4AILrvwx8=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "waitress" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  doCheck = !stdenv.hostPlatform.isDarwin;
  disabledTests = [
    # access to socket
    "test_service_port"
  ];

  # Tests use sockets
  __darwinAllowLocalNetworking = true;

  meta = {
    homepage = "https://github.com/Pylons/waitress";
    description = "Waitress WSGI server";
    mainProgram = "waitress-serve";
    license = lib.licenses.zpl21;
    maintainers = [ ];
  };
}