diff options
Diffstat (limited to 'pkgs/development/python-modules/hypercorn/default.nix')
-rw-r--r-- | pkgs/development/python-modules/hypercorn/default.nix | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/hypercorn/default.nix b/pkgs/development/python-modules/hypercorn/default.nix index 57d56fa417cac..21e2f4f8d9498 100644 --- a/pkgs/development/python-modules/hypercorn/default.nix +++ b/pkgs/development/python-modules/hypercorn/default.nix @@ -1,48 +1,57 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, typing-extensions -, wsproto -, toml -, h2 -, priority -, mock -, poetry-core -, pytest-asyncio -, pytest-trio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + exceptiongroup, + h11, + h2, + priority, + wsproto, + poetry-core, + pytest-asyncio, + pytest-trio, + pytestCheckHook, }: buildPythonPackage rec { pname = "hypercorn"; - version = "0.14.3"; - disabled = pythonOlder "3.7"; + version = "0.16.0"; format = "pyproject"; + disabled = pythonOlder "3.11"; # missing taskgroup dependency + src = fetchFromGitHub { owner = "pgjones"; repo = "Hypercorn"; rev = version; - hash = "sha256-ECREs8UwqTWUweUrwnUwpVotCII2v4Bz7ZCk3DSAd8I="; + hash = "sha256-pIUZCQmC3c6FiV0iMMwJGs9TMi6B/YM+vaSx//sAmKE="; }; postPatch = '' sed -i "/^addopts/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ wsproto toml h2 priority ] - ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; + dependencies = [ + exceptiongroup + h11 + h2 + priority + wsproto + ]; nativeCheckInputs = [ pytest-asyncio pytest-trio pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.8") [ mock ]; + ]; + + disabledTests = [ + # https://github.com/pgjones/hypercorn/issues/217 + "test_startup_failure" + ]; pythonImportsCheck = [ "hypercorn" ]; |