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