Published: 0.0.9

This commit is contained in:
Rafael Baboni Dominiquini 2026-02-02 21:01:59 -03:00
commit c163195481
4 changed files with 67 additions and 0 deletions

21
.SRCINFO Normal file
View file

@ -0,0 +1,21 @@
pkgbase = python-diwire
pkgdesc = A lightweight, type-safe dependency injection container with automatic wiring, scoped lifetimes, and zero dependencies
pkgver = 0.0.9
pkgrel = 1
url = https://github.com/maksimzayats/diwire
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python-wheel
makedepends = python-build
makedepends = python-installer
depends = python
depends = python-pydantic
depends = python-pydantic-settings
depends = python-fastapi
depends = python-typing_extensions
depends = python-pytest
source = https://files.pythonhosted.org/packages/source/d/diwire/diwire-0.0.9.tar.gz
sha256sums = b4c6ff61a9f572396bbea3d5145e39799edd95966bec2fc47718c07504016311
pkgname = python-diwire

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.nvchecker.toml
!.gitignore
!PKGBUILD
!.SRCINFO

3
.nvchecker.toml Normal file
View file

@ -0,0 +1,3 @@
[python-diwire]
source = "pypi"
pypi = "diwire"

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_upstreamver='0.0.9'
_upstreamver_regex='^[0-9]+\.[0-9]+\.[0-9]+$'
_source_type='pypi-releases'
_pypi_package='diwire'
pkgname="python-${_pypi_package}"
pkgver="${_upstreamver}"
pkgrel=1
pkgdesc="A lightweight, type-safe dependency injection container with automatic wiring, scoped lifetimes, and zero dependencies"
arch=('any')
url='https://github.com/maksimzayats/diwire'
license=('MIT')
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer')
depends=('python' 'python-pydantic' 'python-pydantic-settings' 'python-fastapi' 'python-typing_extensions' 'python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${pkgver}.tar.gz")
sha256sums=('b4c6ff61a9f572396bbea3d5145e39799edd95966bec2fc47718c07504016311')
build() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}