1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 poetry-core, 7 pytest-asyncio, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "bite-parser"; 13 version = "0.2.4"; 14 15 disabled = pythonOlder "3.8"; 16 17 format = "pyproject"; 18 19 src = fetchPypi { 20 pname = "bite_parser"; 21 inherit version; 22 hash = "sha256-Uq2FDoo5gztMRqtdkKYX0RULhjFgy+DeujC6BTZ3CZI="; 23 }; 24 25 nativeBuildInputs = [ 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/v${version}/CHANGELOG.rst"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ dotlambda ]; 40 }; 41}