2022-05-26 17:13:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bite-parser";
|
2023-02-09 22:25:31 +00:00
|
|
|
version = "0.2.2";
|
2022-05-26 17:13:57 +00:00
|
|
|
|
2023-01-12 09:58:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-05-26 17:13:57 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-01-12 09:58:22 +00:00
|
|
|
pname = "bite_parser";
|
|
|
|
inherit version;
|
2023-02-09 22:25:31 +00:00
|
|
|
hash = "sha256-mBghKgrNv4ZaRNowo7csWekmqrI0xAVKJKowSeumr4g=";
|
2022-05-26 17:13:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-26 17:13:57 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "bite" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Asynchronous parser taking incremental bites out of your byte input stream";
|
|
|
|
homepage = "https://github.com/jgosmann/bite-parser";
|
2022-06-11 15:39:22 +00:00
|
|
|
changelog = "https://github.com/jgosmann/bite-parser/blob/v${version}/CHANGELOG.rst";
|
2022-05-26 17:13:57 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|