depot/third_party/nixpkgs/pkgs/development/python-modules/bite-parser/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

44 lines
918 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, pytest-asyncio
, pytestCheckHook
, typing-extensions
}:
buildPythonPackage rec {
pname = "bite-parser";
version = "0.2.2";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi {
pname = "bite_parser";
inherit version;
hash = "sha256-mBghKgrNv4ZaRNowo7csWekmqrI0xAVKJKowSeumr4g=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
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";
changelog = "https://github.com/jgosmann/bite-parser/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}