From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/bert/Manifest | 1 + dev-python/bert/bert-2.2.0.ebuild | 23 ++++++++++++++++++++++ .../files/bert-2.0.0-remove-basestring-fix.patch | 11 +++++++++++ dev-python/bert/metadata.xml | 13 ++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 dev-python/bert/Manifest create mode 100644 dev-python/bert/bert-2.2.0.ebuild create mode 100644 dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch create mode 100644 dev-python/bert/metadata.xml (limited to 'dev-python/bert') diff --git a/dev-python/bert/Manifest b/dev-python/bert/Manifest new file mode 100644 index 000000000000..d9a59b801119 --- /dev/null +++ b/dev-python/bert/Manifest @@ -0,0 +1 @@ +DIST bert-2.2.0.tar.gz 3541 BLAKE2B 3f1f87d5205e1098f7d170da5a4e331f9421151af536c106ce2de925082c48bc739df4bbe2294a2dbe8f65d2ccc24a1d5bb944ad90e80e558cb5032e4fd7c639 SHA512 417c9752362c6dc7ade8078f259d1674fcddd09b6af595694a9c31e886dbb523460413d4bf041db29afd4d67a9d639ef8f9254077c31d1593657ad52f8ef45a8 diff --git a/dev-python/bert/bert-2.2.0.ebuild b/dev-python/bert/bert-2.2.0.ebuild new file mode 100644 index 000000000000..44d12f472e06 --- /dev/null +++ b/dev-python/bert/bert-2.2.0.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 python3_7 python3_8 ) + +inherit distutils-r1 + +DESCRIPTION="BERT Serialization Library" +HOMEPAGE="https://pypi.org/project/bert/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/basho-erlastic[${PYTHON_USEDEP}]" + +RDEPEND="" + +PATCHES=( "${FILESDIR}/${PN}-2.0.0-remove-basestring-fix.patch" ) diff --git a/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch b/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch new file mode 100644 index 000000000000..3854e95cdb3a --- /dev/null +++ b/dev-python/bert/files/bert-2.0.0-remove-basestring-fix.patch @@ -0,0 +1,11 @@ +--- a/bert/codec.py 2018-03-07 20:11:38.117925147 -0800 ++++ b/bert/codec.py 2018-03-07 20:12:19.681258078 -0800 +@@ -92,7 +92,7 @@ + return (Atom("bert"), Atom("false")) + elif obj is None: + return (Atom("bert"), Atom("nil")) +- elif isinstance(obj, basestring) and not self.__is_ascii(obj): ++ elif isinstance(obj, str) and not self.__is_ascii(obj): + return (Atom("bert"), Atom("string"), Atom(self.encoding.upper()), obj.encode(self.encoding)) + elif isinstance(obj, dict): + return (Atom("bert"), Atom("dict"), [(self.convert(k), self.convert(v)) for k, v in obj.items()]) diff --git a/dev-python/bert/metadata.xml b/dev-python/bert/metadata.xml new file mode 100644 index 000000000000..a0faadd238b4 --- /dev/null +++ b/dev-python/bert/metadata.xml @@ -0,0 +1,13 @@ + + + + + blueness@gentoo.org + Anthony G. Basile + + + bert + samuel/python-bert + + gentoo-staging + -- cgit v1.3.1