# Contributor: Noel Kuntze # Maintainer: Noel Kuntze pkgname=py3-smbc _pkgname=pysmbc pkgver=1.0.23 pkgrel=1 pkgdesc="Python3 bindings for libsmbclient" url="https://github.com/hamano/pysmbc" arch="all" license="GPL-2.0-or-later" depends="python3" makedepends="python3-dev samba-dev py3-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/hamano/pysmbc/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" options="!check" build() { python3 setup.py build } # add at a later point in time when they have self contained tests # checkdepends="py3-nose" # check() { # # can't run checks at all in such an environment, we'd need to run a samba server. # # From README.md of upstream repo: # # NOTE: to run your tests, you need # # - a running samba server # # - one shared folder with # # - rw permissions # # - guest ok = no # # Makefile uses "python" not "python3" so we can't use it verbatim. # # Just copying the .so file is exactly what the Makefile does too. # mv build/lib*/_smbc*.so . # nosetests # } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 91323044268cb91d40f693a833b12ab47c24edb0d027a6a5ce8936298b8dff4666be3ecd619b41449104ee3505766180355e9f92fd5cead0a8f50e86ef69e4fc py3-smbc-1.0.23.tar.gz "