[arch-commits] Commit in python-pytest-socket/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Dec 25 12:04:28 UTC 2020
Date: Friday, December 25, 2020 @ 12:04:28
Author: felixonmars
Revision: 790112
upgpkg: python-pytest-socket 0.3.5-2: fix missing module file
Modified:
python-pytest-socket/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-25 12:04:27 UTC (rev 790111)
+++ PKGBUILD 2020-12-25 12:04:28 UTC (rev 790112)
@@ -2,7 +2,7 @@
pkgname=python-pytest-socket
pkgver=0.3.5
-pkgrel=1
+pkgrel=2
pkgdesc='Pytest Plugin to disable socket calls during tests'
arch=('any')
license=('MIT')
@@ -16,6 +16,10 @@
prepare() {
cd pytest-socket-$pkgver
dephell deps convert --from pyproject.toml --to setup.py
+
+ # dephell does not generate py_modules into setup.py, so the resulting installation is missing
+ # the module source code itself. Patching it here as a workaround until we fix it properly.
+ sed -i '/license=/a \ py_modules=["pytest_socket"],' setup.py
}
build() {
More information about the arch-commits
mailing list