diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix index 933823a748c5..79e9b73780bb 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.0"; - format = "setuptools"; + version = "3.0.2"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-AF2kebBBNM3Z3WAtHufEnXneBTdhDWU2dMxsveIiuKE="; + hash = "sha256-aCqq8q8MRK2kq/tw3tNjk/DjB/SrlFaiFc4AILrvwx8="; }; - 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 ]; }; }