1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 pytest-asyncio,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "bite-parser";
13 version = "0.2.5";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "jgosmann";
20 repo = "bite-parser";
21 tag = "v${version}";
22 hash = "sha256-C508csRbjCeLgkp66TwDuxUtMITTmub5/TFv8x80HLA=";
23 };
24
25 build-system = [ poetry-core ];
26
27 nativeCheckInputs = [
28 pytest-asyncio
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "bite" ];
33
34 meta = {
35 description = "Asynchronous parser taking incremental bites out of your byte input stream";
36 homepage = "https://github.com/jgosmann/bite-parser";
37 changelog = "https://github.com/jgosmann/bite-parser/blob/${src.rev}/CHANGELOG.rst";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ dotlambda ];
40 };
41}