diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix index 85b4a1a3d6b8..9eada569d7e8 100644 --- a/pkgs/development/python-modules/waitress/default.nix +++ b/pkgs/development/python-modules/waitress/default.nix @@ -2,25 +2,40 @@ lib, buildPythonPackage, fetchPypi, + setuptools, + pytestCheckHook, + pytest-cov-stub, }: buildPythonPackage rec { pname = "waitress"; version = "3.0.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-7wwfAg2fEqUVxOxlwHkgpwJhOvytHb/cO87CVrbAcrM="; }; - doCheck = false; + build-system = [ setuptools ]; + + pythonImportsCheck = [ "waitress" ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; + + disabledTests = [ + # access to socket + "test_service_port" + ]; meta = with lib; { homepage = "https://github.com/Pylons/waitress"; description = "Waitress WSGI server"; mainProgram = "waitress-serve"; - license = licenses.zpl20; + license = licenses.zpl21; maintainers = with maintainers; [ domenkozar ]; }; }