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