python312Packages.baize: init at 0.22.2

This commit is contained in:
Robert Schütz
2024-11-18 19:23:59 +01:00
committed by Martin Weinelt
parent 3b5710835c
commit 195c2b5a51
2 changed files with 24 additions and 29 deletions
@@ -1,18 +1,13 @@
{
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
fetchPypi,
pytestCheckHook,
pdm-pep517,
pytest-httpx,
pytest-asyncio,
pytestCheckHook,
setuptools,
starlette,
anyio,
pytest-asyncio,
pytest-tornasync,
pytest-trio,
pytest-twisted,
twisted,
}:
buildPythonPackage rec {
@@ -20,9 +15,11 @@ buildPythonPackage rec {
version = "0.22.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-J+l8NsSTpCh7Uws+Zp45LXkLEBBurqOsOr8Iik/9smY=";
src = fetchFromGitHub {
owner = "abersheeran";
repo = "baize";
rev = "refs/tags/v${version}";
hash = "sha256-vsYt1q8QEDmEXjd8dlzHr85Fz3YAjPowS+oBWYGbG1o=";
};
build-system = [
@@ -30,31 +27,29 @@ buildPythonPackage rec {
setuptools
];
dependencies = [
pythonImportsCheck = [ "baize" ];
nativeCheckInputs = [
httpx
pytest-asyncio
pytestCheckHook
starlette
];
nativeCheckInputs = [
pytestCheckHook
pytest-httpx
anyio
pytest-asyncio
pytest-tornasync
pytest-trio
pytest-twisted
twisted
];
disabledTests = [
# https://github.com/abersheeran/baize/issues/67
# test relies on last modified date, which is set to 1970-01-01 in the sandbox
"test_files"
# starlette.testclient.WebSocketDenialResponse
"test_request_response"
];
meta = {
description = "Powerful and exquisite WSGI/ASGI framework/toolkit";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
homepage = "https://baize.aber.sh/";
homepage = "https://github.com/abersheeran/baize";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
dotlambda
bot-wxt1221
];
};
}
+2 -2
View File
@@ -1402,6 +1402,8 @@ self: super: with self; {
enablePython = true;
});
baize = callPackage ../development/python-modules/baize { };
bambi = callPackage ../development/python-modules/bambi { };
pad4pi = callPackage ../development/python-modules/pad4pi { };
@@ -1456,8 +1458,6 @@ 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 { };