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