Package Details: python-xsdata 24.11-1

Git Clone URL: https://aur.archlinux.org/python-xsdata.git (read-only, click to copy)
Package Base: python-xsdata
Description: Naive XML bindings for python
Upstream URL: https://xsdata.readthedocs.io
Licenses: MIT
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 0
Popularity: 0.000000
First Submitted: 2021-04-15 02:32 (UTC)
Last Updated: 2024-11-07 18:03 (UTC)

Latest Comments

iyanmv commented on 2024-04-23 05:53 (UTC)

There is a typo in one dependency: it should be python-typing_extensions, not python-typing-extensions

carsme commented on 2024-01-05 16:24 (UTC)

Also, license is not being installed as well as some dependencies not being specified correctly. Feel free to add me as a co-maintainer or apply parts of this PKGBUILD:

pkgname=python-xsdata
_name=${pkgname#python-}
pkgver=23.8
pkgrel=2
pkgdesc="Naive XML & JSON Bindings for Python"
arch=(any)
url="https://github.com/tefra/xsdata"
license=(MIT)
depends=(
  python
  python-click
  python-click-default-group
  python-docformatter
  python-jinja
  python-lxml
  python-requests
  python-toposort
  python-typing-extensions
)
makedepends=(
  python-build
  python-installer
  python-setuptools
  python-wheel
)
checkdepends=(python-pytest)

source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('d98b01d94e95a3b056e019a5090c800b2282ebcac2b5748df5a217eadac0ca26')

_archive="$_name-$pkgver"

build() {
  cd "$_archive"

  python -m build --wheel --no-isolation
}

check() {
  cd "$_archive"

  pytest --override-ini="addopts=" \
    --deselect tests/formats/dataclass/parsers/test_json.py::JsonParserTests::test_parse_with_unknown_class \
    --deselect tests/formats/dataclass/parsers/test_json.py::JsonParserTests::test_verify_type \
    --deselect tests/formats/dataclass/test_context.py::XmlContextTests::test_find_type_by_fields \
    --deselect tests/integration/benchmarks
}

package() {
  cd "$_archive"

  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

Thanks!

carsme commented on 2024-01-05 16:06 (UTC)

Hi there, some tests are failing for me:

======================================================== short test summary info =========================================================
FAILED tests/formats/dataclass/test_context.py::XmlContextTests::test_find_type_by_fields - TypeError: issubclass() arg 1 must be a class
FAILED tests/formats/dataclass/parsers/test_json.py::JsonParserTests::test_parse_with_unknown_class - TypeError: issubclass() arg 1 must be a class
FAILED tests/formats/dataclass/parsers/test_json.py::JsonParserTests::test_verify_type - TypeError: issubclass() arg 1 must be a class
=============================================== 3 failed, 938 passed, 17 skipped in 3.60s ================================================