summaryrefslogtreecommitdiff
path: root/dev-python/pytrie
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytrie')
-rw-r--r--dev-python/pytrie/Manifest1
-rw-r--r--dev-python/pytrie/metadata.xml24
-rw-r--r--dev-python/pytrie/pytrie-0.3.1-r1.ebuild23
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pytrie/Manifest b/dev-python/pytrie/Manifest
new file mode 100644
index 000000000000..59d298f575e6
--- /dev/null
+++ b/dev-python/pytrie/Manifest
@@ -0,0 +1 @@
+DIST pytrie-0.3.1.tar.gz 94678 BLAKE2B 12631652ea33d2f1575f86bc8c42982543f8fa146debc9cb86e1139ff089f0657e04e50bad97b9bc344f4a270d102ee98e03fd389eb2c56ba3baac32b2288670 SHA512 72cb4ffff53d01545658b27b6c0b798736404f95013bfe34586c51c8823cc923ac4b3a8e874a938b26e3045784ce98ce2d8e51ab70dc435ff50075ffaf9d6c51
diff --git a/dev-python/pytrie/metadata.xml b/dev-python/pytrie/metadata.xml
new file mode 100644
index 000000000000..ba771f10e098
--- /dev/null
+++ b/dev-python/pytrie/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>george.sakkis@gmail.com</email>
+ <name>George Sakkis</name>
+ </maintainer>
+ <remote-id type="pypi">PyTrie</remote-id>
+ <remote-id type="github">gsakkis/pytrie</remote-id>
+ </upstream>
+ <longdescription>
+ A *trie* is an ordered tree data structure that is used to store a
+ mapping where the keys are sequences, usually strings over an alphabet.
+ In addition to implementing the mapping interface, tries allow finding
+ the items for a given prefix, and vice versa, finding the items whose
+ keys are prefixes of a given key.
+ </longdescription>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-python/pytrie/pytrie-0.3.1-r1.ebuild b/dev-python/pytrie/pytrie-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..fc5d1d89a7ad
--- /dev/null
+++ b/dev-python/pytrie/pytrie-0.3.1-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+MY_PN="PyTrie"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="A pure Python implementation of the trie data structure"
+HOMEPAGE="https://github.com/gsakkis/pytrie/ https://pypi.org/project/PyTrie/"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="dev-python/sortedcontainers[${PYTHON_USEDEP}]"
+
+distutils_enable_tests setup.py