Package Details: python-typedload 2.14-2

Git Clone URL: https://aur.archlinux.org/python-typedload.git (read-only, click to copy)
Package Base: python-typedload
Description: Load and dump data from json-like format into typed data structures
Upstream URL: https://ltworf.github.io/typedload/
Licenses: GPL3
Submitter: metak
Maintainer: None
Last Packager: metak
Votes: 0
Popularity: 0.000000
First Submitted: 2021-01-08 15:47 (UTC)
Last Updated: 2021-12-13 11:35 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

OpenJowel commented on 2024-10-02 08:23 (UTC)

Hi,

The typedload version targeted by this PKGBUILD is out of date and the project migrated to an other repo.

I tweaked the PKGBUILD on my side to have the latest version. You can use the following:

# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor:

pkgname=python-typedload
_name=typedload
pkgver=2.35
pkgrel=2
pkgdesc='Load and dump data from json-like format into typed data structures'
arch=('any')
url="https://codeberg.org/ltworf/typedload/"
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('mypy')
source=("${_name}-${pkgver}.tar.gz::https://codeberg.org/ltworf/${_name}/releases/download/${pkgver}/${_name}_${pkgver}.orig.tar.gz")
sha256sums=('4897a5de0508cbc3370f4b794332e6e3f29b5b04ac3457659efe6cbfe4cef5f1')

build() {
  cd "${_name}"
  make setup.py
  python setup.py build
}

check() {
  cd "${_name}"
  python -m tests
}

package() {
  cd "${_name}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 example.py "$pkgdir/usr/share/doc/$pkgname/example.py"
  cp -r docs "$pkgdir/usr/share/doc/$pkgname/"
}