Skip to content

Commit

Permalink
add python-aiowmi (#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored Dec 1, 2024
1 parent 989beeb commit 8b03140
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions packages/python-aiowmi/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiowmi
_pkgname=${pkgname#python-}
pkgver=0.2.3
pkgrel=1
pkgdesc='Python Windows Management Interface (WMI) queries connector using asyncio.'
arch=('any')
# https://github.com/cesbit/aiowmi
url='https://pypi.org/project/aiowmi/#files'
license=('GPL-3.0-or-later')
depends=('python' 'python-pycryptodome')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('7608d352a50b99816545109b4ac87888683a8ea45ddb40d5b01072afa22ca70216e5a36281545f745e8945c0cf46117c72dcd86c233e76fdaf11c5b2f29a8df6')

build() {
cd "$_pkgname-$pkgver"

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

package() {
cd "$_pkgname-$pkgver"

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

find "$pkgdir" -type f -iname '*.pyc' -exec rm {} \;
}

0 comments on commit 8b03140

Please sign in to comment.