summaryrefslogtreecommitdiff
path: root/dev-python/pymdstat
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pymdstat')
-rw-r--r--dev-python/pymdstat/Manifest1
-rw-r--r--dev-python/pymdstat/pymdstat-0.5.1.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/pymdstat/Manifest b/dev-python/pymdstat/Manifest
index c904a0143752..f8142ad4e1dd 100644
--- a/dev-python/pymdstat/Manifest
+++ b/dev-python/pymdstat/Manifest
@@ -1 +1,2 @@
DIST pymdstat-0.4.3.gh.tar.gz 17359 BLAKE2B ac89ab5ec874ed1384c8ddd45d01bc1496352e64fc74ef5d4b327571fb599780f1d30f7cf49cbc923ab1c7269e43645a6b9572a31619fcc18e31b8cabb56ac38 SHA512 fd0c11ce511659e48e6f480d974f48b6da9ce184de4f910f0ac07ab2a517e7ea66a5ddf56afe0ae93e5c1dd26ec9189f0c6167689975238b2800c944dd577a1f
+DIST pymdstat-0.5.1.gh.tar.gz 17437 BLAKE2B e0cbdbd8472dcaba58f29682df6080e6eb74bd4c28972ca746554fbe6816f0c9ba655763513bbba2d116694b2a0ae2be24394d36443521afac0bd06283f76ebe SHA512 6e8182feec6203278be5f99f7c1bd6de8b45621d5e7fee9aaba402ecb3b6e103d279cc7334cc02d44b05241d972d61dddc440e903d7e36df1dbc9cf17c34cc38
diff --git a/dev-python/pymdstat/pymdstat-0.5.1.ebuild b/dev-python/pymdstat/pymdstat-0.5.1.ebuild
new file mode 100644
index 000000000000..49effd3ea7bf
--- /dev/null
+++ b/dev-python/pymdstat/pymdstat-0.5.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to parse Linux /proc/mdstat"
+HOMEPAGE="
+ https://github.com/nicolargo/pymdstat/
+ https://pypi.org/project/pymdstat/
+"
+SRC_URI="
+ https://github.com/nicolargo/pymdstat/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+python_prepare_all() {
+ # docs
+ sed -e '/data_files/ d' -i setup.py || die "sed failed"
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${EPYTHON}" unitest.py -v || die "testing failed with ${EPYTHON}"
+}