pkgname: 'libvirt-python' pkgver: '12.6.0' pkgrel: '1' pkgdesc: 'libvirt python binding' url: 'https://pypi.python.org/pypi/libvirt-python' arch: x86_64 license: - LGPL2 depends: - libvirt makedepends: - 'python-setuptools' - libvirt source: - 'https://gitlab.com/libvirt/libvirt-python/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz' sha256sums: - SKIP build: | cd ${pkgname}-${pkgver} pip3 wheel -w dist \ --no-build-isolation \ --no-deps $PWD pip3 install --no-index \ --find-links dist \ --no-cache-dir \ --no-user \ --root=${PKGDIR} \ libvirt-python find ${PKGDIR} -type d -name vendor -o -name tests |xargs rm -rf install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING package: | true