commit:     c358e8c57ca31f08b4cb26b8dce2358288252603
Author:     wangjiezhe <wangjiezhe <AT> gmail <DOT> com>
AuthorDate: Sat Jan 20 06:37:21 2024 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Feb  3 19:32:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c358e8c5

dev-python/ml_dtypes: new package, add 0.2.0

required by tensorflow-2.14

Signed-off-by: wangjiezhe <wangjiezhe <AT> gmail.com>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 dev-python/ml_dtypes/Manifest               |  2 ++
 dev-python/ml_dtypes/metadata.xml           | 12 ++++++++++
 dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild | 35 +++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)

diff --git a/dev-python/ml_dtypes/Manifest b/dev-python/ml_dtypes/Manifest
new file mode 100644
index 000000000000..270337efceaf
--- /dev/null
+++ b/dev-python/ml_dtypes/Manifest
@@ -0,0 +1,2 @@
+DIST eigen-7bf2968fed5f246c0589e1111004cb420fcd7c71.tar.bz2 2239233 BLAKE2B 
3a7e81c302cb11ae1d6ef9433a9ec41506c1f37d04cfb8744ac3fcf7dbe9430c1b48d7197ca3b8e1f9354398bac3d0dbc3e0599c0b649acd6175e906befe2973
 SHA512 
29ee89770726e6e0f5135b7fab24649f3e69223caed90d2daa6f0014783e69fe98f0551de49bd4e393d7b7938f2943caf1ed00f3933fa771ac14fae3c63fd5dd
+DIST ml_dtypes-0.2.0.gh.tar.gz 66155 BLAKE2B 
fc3bcdc8af99a232611b2b9da3ff640852f236dd6b13b8e3fbb9e47934e8a30f3d4d009b845ec1da6f96a4b2fe04e269cef29a5f44061ed9cd38ba24a7d7ce2e
 SHA512 
5903534832f75c13c4fbd5522ff5d93a2d1bf0cbc0226c72f26c4b8137df74fd6603230e5f6de7a58d68f38ff70d97f9e1f3a256b1b64ef611b3f522cb492682

diff --git a/dev-python/ml_dtypes/metadata.xml 
b/dev-python/ml_dtypes/metadata.xml
new file mode 100644
index 000000000000..fb90faa23f9d
--- /dev/null
+++ b/dev-python/ml_dtypes/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Jason Zaman</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">jax-ml/ml_dtypes</remote-id>
+               <remote-id type="pypi">ml_dtypes</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild 
b/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
new file mode 100644
index 000000000000..b6db456a8c20
--- /dev/null
+++ b/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+EIGEN_CommitId="7bf2968fed5f246c0589e1111004cb420fcd7c71"
+
+DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions"
+HOMEPAGE="https://github.com/jax-ml/ml_dtypes";
+SRC_URI="
+       https://github.com/jax-ml/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+       
https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+       dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/pybind11[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+       rmdir third_party/eigen || die
+       cp -r "${WORKDIR}/eigen-${EIGEN_CommitId}" third_party/eigen || die
+       distutils-r1_python_prepare_all
+}

Reply via email to