diff --git a/pkgs/development/python-modules/brei/default.nix b/pkgs/development/python-modules/brei/default.nix new file mode 100644 index 000000000000..b725a689ffdc --- /dev/null +++ b/pkgs/development/python-modules/brei/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + argh, + rich, + rich-argparse, + pytestCheckHook, + hypothesis, + pytest-asyncio, + pytest-timeout, +}: + +buildPythonPackage (finalAttrs: { + pname = "brei"; + version = "0.2.4"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "entangled"; + repo = "brei"; + tag = "v${finalAttrs.version}"; + hash = "sha256-6AwveNt+HUc/lRjKhdoxGLee8AqzIUePHfEK46nLuJY="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + argh + rich + rich-argparse + ]; + + nativeCheckInputs = [ + pytestCheckHook + hypothesis + pytest-asyncio + pytest-timeout + ]; + + pythonRelaxDeps = [ + "argh" + "rich" + ]; + + pythonImportsCheck = [ + "brei" + ]; + + meta = { + description = "Minimal build system"; + homepage = "https://github.com/entangled/brei"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ mjm ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9d26ad71ac9f..70a41f9520cb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2395,6 +2395,8 @@ self: super: with self; { breezy = callPackage ../development/python-modules/breezy { }; + brei = callPackage ../development/python-modules/brei { }; + brelpy = callPackage ../development/python-modules/brelpy { }; brevo-python = callPackage ../development/python-modules/brevo-python { };