blob: 1eee1d60ad90d651695cb2eebf9123efaa58cc27 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8} ) # compile failure with py3.9
inherit distutils-r1
COMMIT="6e34cb4480ae7dbd8c5e44d221d8b27584890c83"
DESCRIPTION="Quantum chemistry package written in Python"
HOMEPAGE="https://github.com/rpmuller/pyquante2"
SRC_URI="https://github.com/rpmuller/pyquante2/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
# Fails to find self, even with --install
RESTRICT="test"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
S="${WORKDIR}/${PN}2-${COMMIT}"
distutils_enable_sphinx docs --no-autodoc
distutils_enable_tests --install pytest
python_prepare_all() {
# this has been renamed in newer versions of sphinx
sed -i -e 's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' docs/conf.py || die
distutils-r1_python_prepare_all
}
|