[arch-commits] Commit in python-litex/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Thu Nov 5 10:42:42 UTC 2020


    Date: Thursday, November 5, 2020 @ 10:42:42
  Author: ffy00
Revision: 743073

fix installed package (2020.08-2)

Modified:
  python-litex/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-05 10:42:08 UTC (rev 743072)
+++ PKGBUILD	2020-11-05 10:42:42 UTC (rev 743073)
@@ -3,7 +3,7 @@
 _pkgname=litex
 pkgname=python-$_pkgname
 pkgver=2020.08
-pkgrel=1
+pkgrel=2
 pkgdesc='Migen/MiSoC based Core/SoC builder that provides the infrastructure to easily create Cores/SoCs'
 arch=('any')
 url='https://github.com/enjoy-digital/litex'
@@ -10,11 +10,16 @@
 license=('BSD')
 depends=('python-migen' 'python-pyserial' 'python-requests' 'python-pythondata-software-compiler_rt')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-litedram' 'python-liteeth' 'python-liteiclink' 'python-litesdcard' 'yosys'
+checkdepends=('python-pytest' 'python-litedram' 'python-liteeth' 'python-liteiclink' 'python-litesdcard' 'yosys'
               'python-pythondata-cpu-vexriscv' 'python-pythondata-cpu-picorv32' 'python-pythondata-cpu-lm32' 'python-pythondata-cpu-mor1kx')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha512sums=('cf31408805947f13ae149b861e37882b809aadc8444a9a4dca0d63787721902188914e286feb3d911ff8d9893c4e51a97c00c32ea8126a71348b1ed5ae7c8552')
 
+prepare() {
+  # seems like running the tests breaks setup.py install
+  cp -r $_pkgname-$pkgver{,-tests}
+}
+
 build() {
   cd $_pkgname-$pkgver
 
@@ -22,9 +27,9 @@
 }
 
 check() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname-$pkgver-tests
 
-  python setup.py pytest --addopts -k-test_variants_minerva
+  pytest -k-test_variants_minerva
 }
 
 package() {



More information about the arch-commits mailing list