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