summaryrefslogtreecommitdiff
path: root/dev-python/python-ipware
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-ipware')
-rw-r--r--dev-python/python-ipware/Manifest1
-rw-r--r--dev-python/python-ipware/metadata.xml10
-rw-r--r--dev-python/python-ipware/python-ipware-0.9.0.ebuild28
3 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/python-ipware/Manifest b/dev-python/python-ipware/Manifest
new file mode 100644
index 000000000000..13461900d6f8
--- /dev/null
+++ b/dev-python/python-ipware/Manifest
@@ -0,0 +1 @@
+DIST python-ipware-0.9.0.gh.tar.gz 11844 BLAKE2B 0d68933880063fa6a28a04bea3dd3e45c55af318b95e6e3d6bd163b6d77433b0fecd90b31d074107738534340fdd1e373b9d70012665ed5b2bc74a6a26d00f03 SHA512 9cbd44a31e1007958e08217ce43a4412390f386adacea18a5c242c970e103b892c351845d824a2cc88b9ee96694b21a2c938ad92ffa07f9c38e387fc37ea8816
diff --git a/dev-python/python-ipware/metadata.xml b/dev-python/python-ipware/metadata.xml
new file mode 100644
index 000000000000..a2df676e20ae
--- /dev/null
+++ b/dev-python/python-ipware/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>core@liguros.net</email>
+ <name>Development</name>
+ </maintainer>
+
+ <origin>ports</origin>
+</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/python-ipware/python-ipware-0.9.0.ebuild b/dev-python/python-ipware/python-ipware-0.9.0.ebuild
new file mode 100644
index 000000000000..fa4079901338
--- /dev/null
+++ b/dev-python/python-ipware/python-ipware-0.9.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10,11} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Django application to retrieve user's IP address"
+HOMEPAGE="
+ https://github.com/un33k/python-ipware
+ https://pypi.org/project/python-ipware/
+"
+SRC_URI="
+ https://github.com/un33k/python-ipware/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+python_test() {
+ "${EPYTHON}" tests/manage.py test -v2 myapp ||
+ die "Tests failed with ${EPYTHON}"
+}