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

python313Packages.aioxmpp: fix tests (#406835)

parents aa9b65c4 3eb017cc
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  babel,
  buildPythonPackage,
  dnspython,
  fetchFromGitHub,
  fetchFromGitea,
  lxml,
  multidict,
  pyasn1-modules,
@@ -27,13 +27,21 @@ buildPythonPackage rec {

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "horazont";
  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "jssfr";
    repo = "aioxmpp";
    tag = "v${version}";
    hash = "sha256-bQPKEM5eKhFI3Kx3U1espdxqjnG4yUgOXmYCrd98PDo=";
  };

  postPatch = ''
    substituteInPlace tests/bookmarks/test_service.py \
      --replace-fail 'can only assign an iterable$' 'must assign iterable'
    substituteInPlace tests/test_utils.py \
      --replace-fail 'property of .* has no' 'property .*of .* has no'
  '';

  pythonRelaxDeps = [
    "lxml"
  ];
@@ -87,8 +95,8 @@ buildPythonPackage rec {

  meta = {
    description = "Pure-python XMPP library for asyncio";
    homepage = "https://github.com/horazont/aioxmpp";
    changelog = "https://github.com/horazont/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
    homepage = "https://codeberg.org/jssfr/aioxmpp";
    changelog = "https://codeberg.org/jssfr/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ dotlambda ];
  };