blob: c7c867246df72d6da007bd0fb47ff52d2002ab9e (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Clint Valentine <valentine.clint@gmail.com>
pkgname=python-pydna
pkgver=4.0.5
pkgrel=1
pkgdesc='Data structures for double-stranded DNA & simulation of homologous recombination'
arch=('any')
url='https://github.com/bjornfjohansson/pydna'
license=('BSD')
depends=(
'python-appdirs'
'python-biopython'
'python-networkx'
'python-prettytable'
'python-pyparsing'
'python-requests')
optdepends=(
'python-matplotlib: gel simulation'
'python-mpldatacursor: gel simulation'
'python-numpy: gel simulation'
'python-pint: gel simulation'
'python-scipy: gel simulation')
makedepends=(
'git'
'python-setuptools'
'python-setuptools-scm'
'python-pytest-runner')
changelog=CHANGELOG.md
source=("$pkgname::git+$url#tag=$pkgver")
sha256sums=('SKIP')
## FIXME: sphinx-build cannot find pydna
# prepare() {
# patch -p1 -d "$pkgname-$pkgver" < 001-python-path.patch
# }
build() {
cd "$pkgname"
python setup.py build
## FIXME: sphinx-build cannot find pydna
# cd docs
# sphinx-build -b man ./ build
}
check() {
cd "$pkgname"
## FIXME: tests fail with python-prettytable=0.7.2
python setup.py pytest || true
}
package() {
cd "$pkgname"
PYTHONHASHSEED=0 python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|