From f238a4714744824f21d7d604e6963f6d9d672114 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Tue, 11 Feb 2020 12:29:11 +0300 Subject: [PATCH] dev-python/filetype: Initial import Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Alexey Shvetsov --- dev-python/filetype/Manifest | 1 + .../files/filetype-1.0.5-examples.patch | 10 ++++++++++ dev-python/filetype/filetype-1.0.5.ebuild | 20 +++++++++++++++++++ dev-python/filetype/metadata.xml | 16 +++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 dev-python/filetype/Manifest create mode 100644 dev-python/filetype/files/filetype-1.0.5-examples.patch create mode 100644 dev-python/filetype/filetype-1.0.5.ebuild create mode 100644 dev-python/filetype/metadata.xml diff --git a/dev-python/filetype/Manifest b/dev-python/filetype/Manifest new file mode 100644 index 000000000000..c8b9b9c8f86d --- /dev/null +++ b/dev-python/filetype/Manifest @@ -0,0 +1 @@ +DIST filetype-1.0.5.tar.gz 668401 BLAKE2B c8dbb2d993a13c848b6460cbdb99da20606bbb632b388c2a0c0a28debf6119c73257f177c55cbce201ed7ac5a47f04a4a2c3137cfde887638151cb287c28333b SHA512 c90846deedfdb9c0dbb8f0f2e3943494ea2a8cbb85752b8fa8093f76a3760864e3a1854530d7a62c418a9e475e22f161ba52c9069cafe24d6f069fd300191dea diff --git a/dev-python/filetype/files/filetype-1.0.5-examples.patch b/dev-python/filetype/files/filetype-1.0.5-examples.patch new file mode 100644 index 000000000000..3032c38a6995 --- /dev/null +++ b/dev-python/filetype/files/filetype-1.0.5-examples.patch @@ -0,0 +1,10 @@ +--- a/setup.py 2020-02-07 15:57:33.445851327 -0000 ++++ b/setup.py 2020-02-07 15:57:50.921877837 -0000 +@@ -37,6 +37,6 @@ + 'Topic :: System :: Filesystems', + 'Topic :: Utilities'], + platforms=['any'], +- packages=find_packages(exclude=['dist', 'build', 'docs', 'tests']), ++ packages=find_packages(exclude=['dist', 'build', 'docs', 'tests', 'examples']), + package_data={'filetype': ['LICENSE', '*.md']}, + zip_safe=True) diff --git a/dev-python/filetype/filetype-1.0.5.ebuild b/dev-python/filetype/filetype-1.0.5.ebuild new file mode 100644 index 000000000000..0916c039f03a --- /dev/null +++ b/dev-python/filetype/filetype-1.0.5.ebuild @@ -0,0 +1,20 @@ +# 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} ) + +inherit distutils-r1 + +DESCRIPTION="Small, dependency-free, fast Python package to infer binary file types checking" +HOMEPAGE="https://github.com/h2non/filetype.py" +LICENSE="BSD" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +BDEPEND="" +RDEPEND="" + +PATCHES=( "${FILESDIR}/${P}-examples.patch" ) diff --git a/dev-python/filetype/metadata.xml b/dev-python/filetype/metadata.xml new file mode 100644 index 000000000000..7bc6b1e196a1 --- /dev/null +++ b/dev-python/filetype/metadata.xml @@ -0,0 +1,16 @@ + + + + + alexxy@gentoo.org + Alexey Shvetsov + + + python@gentoo.org + Python + + + filetype + h2non/filetype.py + + -- 2.26.2