1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-asyncio,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "sanic-routing";
12 version = "23.12.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "sanic-org";
19 repo = "sanic-routing";
20 tag = "v${version}";
21 hash = "sha256-IUubPd6mqtCfY4ruI/8wkFcAcS0xXHWbe9RzDac5kRc=";
22 };
23
24 nativeCheckInputs = [
25 pytest-asyncio
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "sanic_routing" ];
30
31 meta = with lib; {
32 description = "Core routing component for the Sanic web framework";
33 homepage = "https://github.com/sanic-org/sanic-routing";
34 changelog = "https://github.com/sanic-org/sanic-routing/releases/tag/v${version}";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}