Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/statsmodels/
Date: Fri, 04 Nov 2022 10:44:17
Message-Id: 1667558638.d2b2628c643fc069d4eecc0c00d22913c393bc54.arthurzam@gentoo
1 commit: d2b2628c643fc069d4eecc0c00d22913c393bc54
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 10:43:58 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 10:43:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2b2628c
7
8 dev-python/statsmodels: add 0.13.5
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/statsmodels/Manifest | 1 +
13 dev-python/statsmodels/statsmodels-0.13.5.ebuild | 79 ++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/dev-python/statsmodels/Manifest b/dev-python/statsmodels/Manifest
17 index 541073544dbf..3cb3d897e5da 100644
18 --- a/dev-python/statsmodels/Manifest
19 +++ b/dev-python/statsmodels/Manifest
20 @@ -1 +1,2 @@
21 DIST statsmodels-0.13.2.tar.gz 17874260 BLAKE2B 93f7a308217ba938b3cd2e11d75e8f5ad19e2d4e6ab2abbea702143129bb53e7b9be54864375dbfec805624538bc73850357eb944d6c9a4c1252cc8a7606b904 SHA512 79d8dd63f667d4019e462d93e007a5ef8e11972fe35fb4d657931d6d68f3e35d29978a865682133db12fd6742f3362c2d77dfb5735c82ae454570388dd84d59a
22 +DIST statsmodels-0.13.5.tar.gz 18364957 BLAKE2B 8357416b015b152612aca88a9ff42b81db4d97f61b1c255bc2baf8978440cd43fa1a5301d1c60e92b3a634008c5c001c00770685864d296587ff75e37d29ff4f SHA512 9aeeea80c69f52459140179523a0155429834b2951325c9781b28f8c4cbbd0593ff1867e2212078f2b898e4da953689c2fe78183d3c7959caa874e9d758b4ea4
23
24 diff --git a/dev-python/statsmodels/statsmodels-0.13.5.ebuild b/dev-python/statsmodels/statsmodels-0.13.5.ebuild
25 new file mode 100644
26 index 000000000000..5caea8067c6e
27 --- /dev/null
28 +++ b/dev-python/statsmodels/statsmodels-0.13.5.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1 multiprocessing optfeature
38 +
39 +DESCRIPTION="Statistical computations and models for use with SciPy"
40 +HOMEPAGE="https://www.statsmodels.org/stable/index.html"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="examples"
47 +
48 +DEPEND="
49 + >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
50 + >=dev-python/scipy-1.3[${PYTHON_USEDEP}]"
51 +RDEPEND="${DEPEND}
52 + >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
53 + >=dev-python/packaging-21.3[${PYTHON_USEDEP}]
54 + >=dev-python/pandas-0.25[${PYTHON_USEDEP}]
55 + >=dev-python/patsy-0.5.2[${PYTHON_USEDEP}]
56 + >=dev-python/scipy-1.3[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="${DEPEND}
59 + dev-python/cython[${PYTHON_USEDEP}]
60 + test? (
61 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_sphinx docs \
66 + 'dev-python/ipykernel' \
67 + 'dev-python/jupyter_client' \
68 + 'dev-python/matplotlib' \
69 + 'dev-python/nbconvert' \
70 + 'dev-python/numpydoc'
71 +
72 +distutils_enable_tests pytest
73 +
74 +python_prepare_all() {
75 + # Prevent un-needed d'loading
76 + export VARTEXFONTS="${T}"/fonts
77 + export MPLCONFIGDIR="${T}"
78 + printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die
79 +
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_test() {
84 + local -x MKL_NUM_THREADS=1
85 + local -x OMP_NUM_THREADS=1
86 + local EPYTEST_DESELECT=(
87 + # note that test path should be without "statsmodels/" prefix
88 + imputation/tests/test_mice.py::TestMICE::test_combine
89 + stats/tests/test_mediation.py::test_mixedlm
90 + "stats/tests/test_corrpsd.py::test_corrpsd_threshold[0]"
91 + )
92 +
93 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
94 + epytest ${PN} -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
95 + rm -r ${PN}/.pytest_cache || die
96 +}
97 +
98 +python_install_all() {
99 + if use examples; then
100 + docompress -x /usr/share/doc/${PF}/examples
101 + dodoc -r examples
102 + fi
103 + distutils-r1_python_install_all
104 +}
105 +
106 +pkg_postinst() {
107 + optfeature "Plotting functionality" "dev-python/matplotlib"
108 +}