1 |
commit: 42c276a1602f6ddf7f1725e7b81115a1aa4ecc0e |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 28 14:14:48 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 28 14:15:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c276a1 |
7 |
|
8 |
sci-chemistry/mdtraj: add version 1.9.7, enable py3.10, fix tests |
9 |
|
10 |
Bug: https://bugs.gentoo.org/809770 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
sci-chemistry/mdtraj/Manifest | 1 + |
15 |
sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild | 41 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 42 insertions(+) |
17 |
|
18 |
diff --git a/sci-chemistry/mdtraj/Manifest b/sci-chemistry/mdtraj/Manifest |
19 |
index 369fb48765ab..353f6958a591 100644 |
20 |
--- a/sci-chemistry/mdtraj/Manifest |
21 |
+++ b/sci-chemistry/mdtraj/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST mdtraj-1.9.4.tar.gz 2133297 BLAKE2B c1507246bf0c8d7f6753f3d505f940e6f2f001361e42f10c9775647a7e6b58edf2d3953a8e48932f6bf9ad90b27e1baf30df6a7c1a590e49a860175822a25360 SHA512 55f67546db20ce63da3af2231df459e9983e15a65da960784613f746dcce820fe6b0deffbb21b528e93fc6cf674dc7a25ee11110894d2a89e5504e20d200ca38 |
24 |
+DIST mdtraj-1.9.7.tar.gz 2087085 BLAKE2B 430b42eddee0be8beba47994efd16515727970ac7acb36007c9b153cdb474551e5ea228f78a194fa9672d5b169753a9db3c090412bf749b3f1e9323bad9f52de SHA512 5dc9d474909a160e0b1d7989325e8190d1c593087f0130854094eb9c49bc00fd631ea19142d396d49aa7a3dadddaf535b5e811f7574ffff36f0cd22f14691067 |
25 |
|
26 |
diff --git a/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild b/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..b069f9456270 |
29 |
--- /dev/null |
30 |
+++ b/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild |
31 |
@@ -0,0 +1,41 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Read, write and analyze MD trajectories with only a few lines of Python code" |
41 |
+HOMEPAGE="http://mdtraj.org" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="GPL-2" |
46 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/astunparse[${PYTHON_USEDEP}] |
50 |
+ dev-python/astor[${PYTHON_USEDEP}] |
51 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
52 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
53 |
+ dev-python/pytables[${PYTHON_USEDEP}] |
54 |
+ dev-python/pyparsing[${PYTHON_USEDEP}] |
55 |
+ dev-python/networkx[${PYTHON_USEDEP}] |
56 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ test? ( |
60 |
+ dev-python/jupyter_client[${PYTHON_USEDEP}] |
61 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
62 |
+ sci-libs/scikit-learn[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests --install pytest |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ sed -e "s:re.match('build.*(mdtraj.*)', output_dir).group(1):'.':g" \ |
70 |
+ -i basesetup.py || die |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |