datamodel-code-generator
MEDIUM
maintainer Smoolak
0 votes
scanned 2026-10-19 09:25:06.082550
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
3
pkgname=datamodel-code-generator
4
pkgver=0.32.0
5
pkgrel=1
6
pkgdesc="Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources"
7
arch=('any')
8
url="https://github.com/koxudaxi/${pkgname}"
9
license=('MIT')
10
provides=(python-${pkgname})
11
conflicts=(python-${pkgname})
12
depends=(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)
13
makedepends=(python-build python-installer python-hatchling python-hatch-vcs)
14
source=(${pkgname}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz)
15
sha512sums=('fd25c39baa343320352fd04480674aa221b5fec479b94fdafdb6e93535a26fa8c2b81f9ece248ec2bb7739e3ef29161f54f509ac9c831fc0867d84e061bf68d4')
16
17
build(){
18
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
19
20
cd "${srcdir}/${pkgname}-${pkgver}"
21
python -m build --wheel --no-isolation
22
}
23
24
package(){
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) | Severity | Rules |
|---|---|---|
| 2026-10-19 09:25:06 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |