summaryrefslogtreecommitdiff
path: root/dev-python/binaryornot
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-09-15 12:28:05 +0000
committerLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-09-15 12:28:05 +0000
commit6045eaef8e9f6358f4d5a79bb21d17e1e8211671 (patch)
tree95a458f2c8ca9c13393cd6971432c9f7a0a23227 /dev-python/binaryornot
parentf66397aa4a24245857a28a0fc76dff1969523e65 (diff)
downloadbaldeagleos-repo-6045eaef8e9f6358f4d5a79bb21d17e1e8211671.tar.gz
baldeagleos-repo-6045eaef8e9f6358f4d5a79bb21d17e1e8211671.tar.xz
baldeagleos-repo-6045eaef8e9f6358f4d5a79bb21d17e1e8211671.zip
Updating liguros repo
Diffstat (limited to 'dev-python/binaryornot')
-rw-r--r--dev-python/binaryornot/binaryornot-0.4.4-r1.ebuild31
-rw-r--r--dev-python/binaryornot/files/binaryornot-0.4.4-fix-version-number.patch13
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/binaryornot/binaryornot-0.4.4-r1.ebuild b/dev-python/binaryornot/binaryornot-0.4.4-r1.ebuild
new file mode 100644
index 000000000000..385d89ca4263
--- /dev/null
+++ b/dev-python/binaryornot/binaryornot-0.4.4-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6,7,8,9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Ultra-lightweight pure Python package to guess whether a file is binary or text"
+HOMEPAGE="https://github.com/audreyr/binaryornot"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]"
+BDEPEND="test? ( dev-python/hypothesis[${PYTHON_USEDEP}] )"
+
+DOCS=( README.rst HISTORY.rst CONTRIBUTING.rst )
+
+PATCHES=(
+ # https://github.com/audreyr/binaryornot/commit/38dee57986c6679d9936a1da6f6c8182da3734f8
+ "${FILESDIR}"/${P}-tests.patch
+ # Version number has not been updated to 0.4.4
+ "${FILESDIR}"/${P}-fix-version-number.patch
+)
+
+distutils_enable_tests unittest
+distutils_enable_sphinx docs
diff --git a/dev-python/binaryornot/files/binaryornot-0.4.4-fix-version-number.patch b/dev-python/binaryornot/files/binaryornot-0.4.4-fix-version-number.patch
new file mode 100644
index 000000000000..05d6ed0b7449
--- /dev/null
+++ b/dev-python/binaryornot/files/binaryornot-0.4.4-fix-version-number.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 68a4f5b..a0c9e14 100755
+--- a/setup.py
++++ b/setup.py
+@@ -13,7 +13,7 @@ with open('README.rst') as readme_file:
+ with open('HISTORY.rst') as history_file:
+ history = history_file.read().replace('.. :changelog:', '')
+
+-version = '0.4.3'
++version = '0.4.4'
+
+ if sys.argv[-1] == 'publish':
+ os.system('python setup.py sdist bdist_wheel upload')