summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-02-10 07:24:34 +0100
committerMichał Górny <mgorny@gentoo.org>2024-02-10 10:15:51 +0100
commit1d761a453cf0138b7c06143adddb463a5b6d3c34 (patch)
tree6d39d5e5ec185baae686c1a16ddd7b71360b0a4e /dev-python/netaddr
parentdev-python/dask: Bump to 2024.2.0 (diff)
downloadgentoo-1d761a453cf0138b7c06143adddb463a5b6d3c34.tar.gz
gentoo-1d761a453cf0138b7c06143adddb463a5b6d3c34.tar.bz2
gentoo-1d761a453cf0138b7c06143adddb463a5b6d3c34.zip
dev-python/netaddr: Bump to 1.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/netaddr')
-rw-r--r--dev-python/netaddr/Manifest1
-rw-r--r--dev-python/netaddr/metadata.xml3
-rw-r--r--dev-python/netaddr/netaddr-1.0.0.ebuild37
3 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/netaddr/Manifest b/dev-python/netaddr/Manifest
index 730a4576b6ca..067bd2a445ff 100644
--- a/dev-python/netaddr/Manifest
+++ b/dev-python/netaddr/Manifest
@@ -1 +1,2 @@
DIST netaddr-0.10.1.tar.gz 2225283 BLAKE2B 1e350909779af0bf48d74834194358386cf4f8e11fa7b03c971b3011bcec437cc39feb72e7e79d55eb330e6ee138d15bb6dba9293667e1adb4ed1c6d42a35d78 SHA512 ca04171d5cbfd569d4f262f4870610edfd98be35899cb70983dbff5f37add963e05987ddbe1ab22d9b615580ac1abe96a8c2903681b18af8c9f2f96899b618ff
+DIST netaddr-1.0.0.tar.gz 2233464 BLAKE2B c79e7dafe81219f39d97d1d7e5f320d8082e9a967edb9faf9345aac9f58d9deb37152d4d1583bd869594531c98f27bb4bbd3e439c217152b188b03cb7b82b8d0 SHA512 0eb27a655c03ea2a26ea11b88324f6c1c15b6458abd0ba056a4651038261038c8c852a866b5c45e96a87f107a2b23ec259c868c2122ae450b31b4fff91ea9962
diff --git a/dev-python/netaddr/metadata.xml b/dev-python/netaddr/metadata.xml
index c2c2e497ab05..15bf8f3ccb7c 100644
--- a/dev-python/netaddr/metadata.xml
+++ b/dev-python/netaddr/metadata.xml
@@ -13,4 +13,7 @@
<changelog>https://github.com/netaddr/netaddr/blob/master/CHANGELOG</changelog>
<doc>https://netaddr.readthedocs.io/</doc>
</upstream>
+ <use>
+ <flag name="cli">Provide a command-line interface</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/netaddr/netaddr-1.0.0.ebuild b/dev-python/netaddr/netaddr-1.0.0.ebuild
new file mode 100644
index 000000000000..e853a21da5ec
--- /dev/null
+++ b/dev-python/netaddr/netaddr-1.0.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Network address representation and manipulation library"
+HOMEPAGE="
+ https://github.com/netaddr/netaddr/
+ https://pypi.org/project/netaddr/
+ https://netaddr.readthedocs.io/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="cli"
+
+RDEPEND="
+ cli? ( dev-python/ipython[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_sphinx docs/source \
+ dev-python/furo
+distutils_enable_tests pytest
+
+src_prepare() {
+ if ! use cli; then
+ sed -i -e '/netaddr\.cli/d' pyproject.toml || die
+ fi
+
+ distutils-r1_src_prepare
+}