datamodel-code-generator

MEDIUM
maintainer Smoolak 0 votes scanned 2026-10-19 09:25:06.082550
View on AUR
Why flagged

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

Triggered rules

Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: ThePirate42 <aur at thepirate42 dot org>
2
3pkgname=datamodel-code-generator
4pkgver=0.32.0
5pkgrel=1
6pkgdesc="Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources"
7arch=('any')
8url="https://github.com/koxudaxi/${pkgname}"
9license=('MIT')
10provides=(python-${pkgname})
11conflicts=(python-${pkgname})
12depends=(python python-argcomplete python-black python-genson python-inflect python-isort python-packaging python-jinja python-pydantic python-yaml python-tomli python-typing_extensions python-pydantic-core)
13makedepends=(python-build python-installer python-hatchling python-hatch-vcs)
14source=(${pkgname}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz)
15sha512sums=('fd25c39baa343320352fd04480674aa221b5fec479b94fdafdb6e93535a26fa8c2b81f9ece248ec2bb7739e3ef29161f54f509ac9c831fc0867d84e061bf68d4')
16
17build(){
18 export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
19
20 cd "${srcdir}/${pkgname}-${pkgver}"
21 python -m build --wheel --no-isolation
22}
23
24package(){
25 cd "${srcdir}/${pkgname}-${pkgver}"
26 python -m installer --destdir="${pkgdir}" dist/*.whl
27
28 # Symlink license file
29 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
30 install -d "${pkgdir}/usr/share/licenses/${pkgname}"
31 ln -s "${site_packages}/datamodel_code_generator-${pkgver}.dist-info/licenses/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
32}
33

Scan history

Scanned at (UTC)SeverityRules
2026-10-19 09:25:06 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion