python310Packages.hypercorn: 0.13.2 -> 0.14.3

https://github.com/pgjones/hypercorn/blob/0.14.3/CHANGELOG.rst
This commit is contained in:
Robert Schütz 2022-11-12 15:33:11 -08:00
parent a369a02944
commit 49fc445b27

View file

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, fetchFromGitHub
, pythonOlder
, typing-extensions
, wsproto
@ -10,25 +10,27 @@
, mock
, poetry-core
, pytest-asyncio
, pytest-cov
, pytest-sugar
, pytest-trio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Hypercorn";
version = "0.13.2";
version = "0.14.3";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitLab {
src = fetchFromGitHub {
owner = "pgjones";
repo = pname;
rev = version;
sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ=";
hash = "sha256-ECREs8UwqTWUweUrwnUwpVotCII2v4Bz7ZCk3DSAd8I=";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
@ -38,20 +40,14 @@ buildPythonPackage rec {
checkInputs = [
pytest-asyncio
pytest-cov
pytest-sugar
pytest-trio
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.8") [ mock ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [ "hypercorn" ];
meta = with lib; {
homepage = "https://pgjones.gitlab.io/hypercorn/";
homepage = "https://github.com/pgjones/hypercorn";
description = "The ASGI web server inspired by Gunicorn";
license = licenses.mit;
maintainers = with maintainers; [ dgliwka ];