summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59e7c24a4ebc41a07b17ff0d0059fe13fae33f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-noseofyeti
pkgver=2.4.8
_commit=5bd8abafa5e8db32e7fff37105d2ac25d30605bf
pkgrel=1
pkgdesc="A custom pyton codec that provides an RSpec style dsl for python"
url="https://github.com/delfick/nose-of-yeti"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-hatchling')
checkdepends=('python-pytest' 'python-alt-pytest-asyncio'
              'python-pytest-helpers-namespace')
source=("git+https://github.com/delfick/nose-of-yeti.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd nose-of-yeti
  # https://github.com/delfick/nose-of-yeti/issues/22
  sed -i '/asynctest/d' pyproject.toml
  python -m build -nw
}

check() {
  cd nose-of-yeti
  python -m venv --system-site-packages test-env
  test-env/bin/python -m installer dist/*.whl
  test-env/bin/python -m pytest
}

package() {
  cd nose-of-yeti
  python -m installer -d "$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}