python3Packages.sanic-ext: init at 24.12.0 (#410691)

This commit is contained in:
Sandro
2025-06-07 21:07:24 +02:00
committed by GitHub
3 changed files with 79 additions and 3 deletions
@@ -0,0 +1,75 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# Build system
setuptools,
# Dependencies
pyyaml,
# Test dependencies
pytestCheckHook,
sanic-testing,
attrs,
coverage,
msgspec,
pydantic,
pytest,
pytest-cov,
pytest-asyncio,
tox,
jinja2,
}:
buildPythonPackage rec {
pname = "sanic-ext";
version = "24.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sanic-org";
repo = "sanic-ext";
tag = "v${version}";
hash = "sha256-H1tqiPQ4SwlNGj7GtB2h7noZpU+gbGXIbmRK1TSSqVA=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
sanic-testing
attrs
coverage
msgspec
pydantic
pytest
pytest-cov
pytest-asyncio
tox
jinja2
];
disabledTests = [
"test_models[FooPydanticDataclass]" # KeyError: 'paths'
"test_pydantic_base_model[AlertResponsePydanticBaseModel-True]" # AssertionError: assert 'AlertPydanticBaseModel' in {'AlertResponsePydanticBaseModel': ... }
"test_pydantic_base_model[AlertResponsePydanticDataclass-True]" # AssertionError: assert 'AlertPydanticDataclass' in {'AlertResponsePydanticDataclass': ... }
];
pythonImportsCheck = [ "sanic_ext" ];
meta = {
description = "Common, officially supported extension plugins for the Sanic web server framework";
homepage = "https://github.com/sanic-org/sanic-ext/";
changelog = "https://github.com/sanic-org/sanic-ext/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ p0lyw0lf ];
};
}
@@ -13,6 +13,7 @@
pytest-asyncio,
pytestCheckHook,
pythonOlder,
sanic-ext,
sanic-routing,
sanic-testing,
setuptools,
@@ -54,9 +55,7 @@ buildPythonPackage rec {
];
optional-dependencies = {
ext = [
# TODO: sanic-ext
];
ext = [ sanic-ext ];
http3 = [ aioquic ];
};
+2
View File
@@ -15664,6 +15664,8 @@ self: super: with self; {
sanic-auth = callPackage ../development/python-modules/sanic-auth { };
sanic-ext = callPackage ../development/python-modules/sanic-ext { };
sanic-routing = callPackage ../development/python-modules/sanic-routing { };
sanic-testing = callPackage ../development/python-modules/sanic-testing { };