1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchPypi,
6 setuptools,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "waitress";
13 version = "3.0.2";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-aCqq8q8MRK2kq/tw3tNjk/DjB/SrlFaiFc4AILrvwx8=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "waitress" ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 pytest-cov-stub
28 ];
29
30 doCheck = !stdenv.hostPlatform.isDarwin;
31 disabledTests = [
32 # access to socket
33 "test_service_port"
34 ];
35
36 # Tests use sockets
37 __darwinAllowLocalNetworking = true;
38
39 meta = with lib; {
40 homepage = "https://github.com/Pylons/waitress";
41 description = "Waitress WSGI server";
42 mainProgram = "waitress-serve";
43 license = licenses.zpl21;
44 maintainers = with maintainers; [ ];
45 };
46}