Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 44 lines 918 B view raw
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.2.2"; 14 15 disabled = pythonOlder "3.8"; 16 17 format = "pyproject"; 18 19 src = fetchPypi { 20 pname = "bite_parser"; 21 inherit version; 22 hash = "sha256-mBghKgrNv4ZaRNowo7csWekmqrI0xAVKJKowSeumr4g="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 nativeCheckInputs = [ 30 pytest-asyncio 31 pytestCheckHook 32 typing-extensions 33 ]; 34 35 pythonImportsCheck = [ "bite" ]; 36 37 meta = { 38 description = "Asynchronous parser taking incremental bites out of your byte input stream"; 39 homepage = "https://github.com/jgosmann/bite-parser"; 40 changelog = "https://github.com/jgosmann/bite-parser/blob/v${version}/CHANGELOG.rst"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ dotlambda ]; 43 }; 44}