summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2020-02-11 12:29:11 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2020-02-11 14:41:09 +0300
commitf238a4714744824f21d7d604e6963f6d9d672114 (patch)
treef361d04fdf65f3ace7809f22f46794ccfb89c8e8 /dev-python/filetype
parentdev-python/emoji: Initial import (diff)
downloadgentoo-f238a4714744824f21d7d604e6963f6d9d672114.tar.gz
gentoo-f238a4714744824f21d7d604e6963f6d9d672114.tar.bz2
gentoo-f238a4714744824f21d7d604e6963f6d9d672114.zip
dev-python/filetype: Initial import
Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-python/filetype')
-rw-r--r--dev-python/filetype/Manifest1
-rw-r--r--dev-python/filetype/files/filetype-1.0.5-examples.patch10
-rw-r--r--dev-python/filetype/filetype-1.0.5.ebuild20
-rw-r--r--dev-python/filetype/metadata.xml16
4 files changed, 47 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">filetype</remote-id>
+ <remote-id type="github">h2non/filetype.py</remote-id>
+ </upstream>
+</pkgmetadata>