Unverified Commit e7ab48b0 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.baize: 0.22.2 -> 0.23.1 (#445851)

parents ad63751c aeb2277a
Loading
Loading
Loading
Loading
+4 −22
Original line number Diff line number Diff line
@@ -3,38 +3,27 @@
  fetchFromGitHub,
  httpx,
  lib,
  pdm-pep517,
  pdm-backend,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
  starlette,
  fetchpatch,
}:

buildPythonPackage rec {
  pname = "baize";
  version = "0.22.2";
  version = "0.23.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "abersheeran";
    repo = "baize";
    tag = "v${version}";
    hash = "sha256-vsYt1q8QEDmEXjd8dlzHr85Fz3YAjPowS+oBWYGbG1o=";
    hash = "sha256-TclyTLqJ+r9Spg6VgmsqhhVj/Mp/HqFrkXjZy5f2BR0=";
  };

  patches = [
    # Fix tests failing with httpx>=0.28
    # https://github.com/abersheeran/baize/pull/74
    # FIXME: Remove in next release
    (fetchpatch {
      url = "https://github.com/abersheeran/baize/commit/40dc83bc03b4e5acd5155917be3a481e6494530e.patch";
      hash = "sha256-z4jb4iwo51WIPAAECiM4kPThpHcrzy3349gm/orgoq8=";
    })
  ];

  build-system = [
    pdm-pep517
    pdm-backend
    setuptools
  ];

@@ -47,13 +36,6 @@ buildPythonPackage rec {
    starlette
  ];

  disabledTests = [
    # 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";
    homepage = "https://github.com/abersheeran/baize";