summaryrefslogtreecommitdiff
path: root/dev-python/vatnumber
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/vatnumber
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/vatnumber')
-rw-r--r--dev-python/vatnumber/Manifest6
-rw-r--r--dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch18
-rw-r--r--dev-python/vatnumber/metadata.xml17
-rw-r--r--dev-python/vatnumber/vatnumber-1.1.ebuild32
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/vatnumber/Manifest b/dev-python/vatnumber/Manifest
new file mode 100644
index 000000000000..f294e1077585
--- /dev/null
+++ b/dev-python/vatnumber/Manifest
@@ -0,0 +1,6 @@
+AUX vatnumber-1.0-skiptest.patch 605 SHA256 cff3c8f821af696751c212b037ba1dfe121e6f9c8c9dcbddebb5f9dead13d927 SHA512 dc9a45a9bfb0862aa22f9ea913480dc5e8873a49a3ee1f6d395850efe046eaded347e4bb5848ddfe80dc51780e0688f0b9664895b446268a78d3c4c23c3460fa WHIRLPOOL 84c1d01311f73354b91f8b9e01a1e3f8b671af95f893eb360fba2badde57f8ea1e1b2f676ed39db09ef997c9baf9cb85d8907da2d33f7e7658d48c229f6e091a
+DIST vatnumber-1.1.tar.gz 22032 SHA256 ff7017420e137609a74ce0dbe6ba16c86ea5317d50ca398f8f423141c07fae18 SHA512 286be890f37dc3ea97beea22f6e34402a9e40738b33a94f98e16a09801656f64fde9f290ed857c5df1fd44896a9e0fbcbfcc8f1dbe2f1314015e473dadc0ebbe WHIRLPOOL 1791946de17a03909b7f3dd3bb20a6cdd08ab552e5413319044e9978bb27ecfc0659636785b86917f4e76dbfb8b2fee379c0df6ac796e290b4109677b99fa7b7
+EBUILD vatnumber-1.1.ebuild 673 SHA256 c82ff7c26462768a5e06073283b965547aa215c425f42c96b4356c473f4ed107 SHA512 b14596a46910352c5f2403dc6cd9cede2cb08526ab7befcdc0a056d5cd8456ba4ec2b78667a4c830bcbe7e337cc0c0a526a194c0b2910a3c6b43ac77fb2f8edf WHIRLPOOL 771c314a84756076c0e3a161fb30ada1424fe99d7630c5860778d29f3fd9ad79aef19bda358fe3dfd625b843ae03b324d036bb19f6f637651e4893014e6c4227
+MISC ChangeLog 3315 SHA256 783f7e06e1634fcae79748bf8a9e54ed2419b2c64408aa810258160f834732bb SHA512 71abb939243de8825926649bc1529f69330ca76b14831e81b4bc17edd18cad3e3ad9ab6e3465c0980430352b061edb4265d665a0d1d62c5de672a92d0940a54d WHIRLPOOL 14e63bd976fd86db9d58887451cc64a342c9a8a680f3045ad99f579c26d6c08722c4f921d654c0d38ac208a5b605ed60736a81745a7f2e1d68221358d11842ad
+MISC ChangeLog-2015 1526 SHA256 66847fae43911f58e05ba8309deaf66f67423d4900995e71f26beb3dd81ae08b SHA512 9b1055a706de09f7f27ec621157401edd24ed1412f2a593f7c98a972bcbd85dd20611f3603211c8c13162f1203c1b5f84c48a30d927cd3c4791ea52b31878eea WHIRLPOOL e9f6f663d101c7898cd9c649a2ce6781d058fe1f939029ce4469dc0d156b0f50065d60ca69b55ab565b7eac92d49477a83dffbd209bcdf40af993980e59ee66d
+MISC metadata.xml 455 SHA256 9633c07e085987732fbcd31c6040329a4b1aaf5d54a7d226e52197f9b575a349 SHA512 909a3ea15c3956e7e0a1d6674bd0c1d5f244d9f2df1b7624cd65c6733dd2101d9508e47790ed45106083026dc6fc4bfd16a090c3ca1393422fa7cc90456707da WHIRLPOOL ad31633f827168227e27dc03e103cc05aa202ea984ce8afd166761ada6f6dd3e7c1ff0ef009ad371faae910f27d453328ecc8762e8e67d8f6019a8329f0dc968
diff --git a/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch b/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch
new file mode 100644
index 000000000000..9c99901cd45b
--- /dev/null
+++ b/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch
@@ -0,0 +1,18 @@
+Remove test that accesses network, bug 440964
+diff -ur vatnumber-1.0.orig/vatnumber/tests.py vatnumber-1.0/vatnumber/tests.py
+--- vatnumber/tests.py 2011-09-28 18:32:09.000000000 +0800
++++ vatnumber/tests.py 2012-11-26 12:32:46.177509425 +0800
+@@ -198,13 +198,6 @@
+ test = self.assertFalse
+ test(vatnumber.check_vat(code + number), code + number)
+
+- def test_vies(self):
+- '''
+- Test vies
+- '''
+- for vat in VIES_NUMBERS:
+- self.assert_(vatnumber.check_vies(vat))
+-
+ def test_countries(self):
+ '''
+ Test countries
diff --git a/dev-python/vatnumber/metadata.xml b/dev-python/vatnumber/metadata.xml
new file mode 100644
index 000000000000..30cf1007b1b4
--- /dev/null
+++ b/dev-python/vatnumber/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+ Python module to validate VAT numbers
+ </longdescription>
+ <use>
+ <flag name="vies">Enable VIES</flag>
+ </use>
+ <upstream>
+ <remote-id type="pypi">vatnumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/vatnumber/vatnumber-1.1.ebuild b/dev-python/vatnumber/vatnumber-1.1.ebuild
new file mode 100644
index 000000000000..2d00115728cb
--- /dev/null
+++ b/dev-python/vatnumber/vatnumber-1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Module to validate VAT numbers"
+HOMEPAGE="https://pypi.python.org/pypi/vatnumber/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test vies"
+
+RDEPEND="vies? ( dev-python/suds )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/suds )"
+
+PARCHES=( "${FILESDIR}"/${P}-skiptest.patch )
+
+python_test() {
+ esetup.py test
+}
+
+src_install() {
+ distutils-r1_src_install
+ dodoc COPYRIGHT README CHANGELOG
+}