From e6119586a096d83985b51d6ca7fd035dd850fb46 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 13 Nov 2024 20:20:29 +0800 Subject: [PATCH] python3Packages.baize: init at 0.22.2 (cherry picked from commit 67075b4269b3c730345d458ef0fe950c342079fb) --- .../python-modules/baize/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/baize/default.nix diff --git a/pkgs/development/python-modules/baize/default.nix b/pkgs/development/python-modules/baize/default.nix new file mode 100644 index 000000000000..d0fec79bc5a6 --- /dev/null +++ b/pkgs/development/python-modules/baize/default.nix @@ -0,0 +1,60 @@ +{ + buildPythonPackage, + lib, + fetchPypi, + pytestCheckHook, + pdm-pep517, + pytest-httpx, + setuptools, + starlette, + anyio, + pytest-asyncio, + pytest-tornasync, + pytest-trio, + pytest-twisted, + twisted, +}: + +buildPythonPackage rec { + pname = "baize"; + version = "0.22.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-J+l8NsSTpCh7Uws+Zp45LXkLEBBurqOsOr8Iik/9smY="; + }; + + build-system = [ + pdm-pep517 + setuptools + ]; + + dependencies = [ + starlette + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-httpx + anyio + pytest-asyncio + pytest-tornasync + pytest-trio + pytest-twisted + twisted + ]; + + disabledTests = [ + # https://github.com/abersheeran/baize/issues/67 + "test_files" + "test_request_response" + ]; + + meta = { + description = "Powerful and exquisite WSGI/ASGI framework/toolkit"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + homepage = "https://baize.aber.sh/"; + license = lib.licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75fd5b3333f6..5ce524a950f3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1452,6 +1452,8 @@ self: super: with self; { bagit = callPackage ../development/python-modules/bagit { }; + baize = callPackage ../development/python-modules/baize { }; + banal = callPackage ../development/python-modules/banal { }; bandcamp-api = callPackage ../development/python-modules/bandcamp-api { };