dev-python/rfc3339-validator: New package
authorPatrick McLean <patrick.mclean@sony.com>
Sat, 23 Nov 2019 23:06:48 +0000 (15:06 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Sat, 23 Nov 2019 23:06:48 +0000 (15:06 -0800)
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
dev-python/rfc3339-validator/Manifest [new file with mode: 0644]
dev-python/rfc3339-validator/files/rfc3339-validator-0.1.2-remove-pytest-runner.patch [new file with mode: 0644]
dev-python/rfc3339-validator/metadata.xml [new file with mode: 0644]
dev-python/rfc3339-validator/rfc3339-validator-0.1.2.ebuild [new file with mode: 0644]

diff --git a/dev-python/rfc3339-validator/Manifest b/dev-python/rfc3339-validator/Manifest
new file mode 100644 (file)
index 0000000..f993390
--- /dev/null
@@ -0,0 +1 @@
+DIST rfc3339-validator-0.1.2.tar.gz 7429 BLAKE2B 9c08ae6ebe12af043ebad82a716e359f323f318d44e1f23a41759773e1927f90d6dde95566ca3c9463db6ffc9f2c3a31925ee4668f7fbe1defc78e09949ac391 SHA512 42164f8258025b056a6c5584c1c5e76f4c4fddead1a18199cd5b115a5a576d8863676d741e5e9a12bd4b41cbf55e722632a57dc3f76688ff0ad886615286c567
diff --git a/dev-python/rfc3339-validator/files/rfc3339-validator-0.1.2-remove-pytest-runner.patch b/dev-python/rfc3339-validator/files/rfc3339-validator-0.1.2-remove-pytest-runner.patch
new file mode 100644 (file)
index 0000000..00c1cef
--- /dev/null
@@ -0,0 +1,24 @@
+diff --git a/requirements_dev.txt b/requirements_dev.txt
+index c4f59fc..f8da57f 100644
+--- a/requirements_dev.txt
++++ b/requirements_dev.txt
+@@ -7,6 +7,5 @@ coverage==4.5.4
+ twine==1.14.0
+ pytest==4.6.5
+-pytest-runner==5.1
+ hypothesis==4.41.3
+ strict_rfc3339==0.7
+diff --git a/setup.py b/setup.py
+index ada5c92..fb0df5a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -14,7 +14,7 @@ requirements = [
+ setup_requirements = []
+-test_requirements = ['pytest>=3', 'pytest-runner']
++test_requirements = ['pytest>=3']
+ setup(
+     author="Nicolas Aimetti",
diff --git a/dev-python/rfc3339-validator/metadata.xml b/dev-python/rfc3339-validator/metadata.xml
new file mode 100644 (file)
index 0000000..5d6a63f
--- /dev/null
@@ -0,0 +1,11 @@
+<?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>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">rfc3339-validator</remote-id>
+    <remote-id type="github">naimetti/rfc3339-validator</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-python/rfc3339-validator/rfc3339-validator-0.1.2.ebuild b/dev-python/rfc3339-validator/rfc3339-validator-0.1.2.ebuild
new file mode 100644 (file)
index 0000000..0f1fd7b
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
+inherit distutils-r1
+
+DESCRIPTION="A pure python RFC3339 validator"
+HOMEPAGE="https://github.com/naimetti/rfc3339-validator"
+SRC_URI="https://github.com/naimetti/rfc3339-validator/archive/v0.1.2.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]
+       dev-python/strict-rfc3339[${PYTHON_USEDEP}]"
+BDEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}/rfc3339-validator-0.1.2-remove-pytest-runner.patch"
+)
+
+distutils_enable_tests pytest