diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/aniso8601 | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/aniso8601')
| -rw-r--r-- | dev-python/aniso8601/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/aniso8601/aniso8601-4.0.1.ebuild | 26 | ||||
| -rw-r--r-- | dev-python/aniso8601/aniso8601-8.0.0.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/aniso8601/files/aniso8601-4.0.1-mock.patch | 113 | ||||
| -rw-r--r-- | dev-python/aniso8601/metadata.xml | 13 |
5 files changed, 173 insertions, 0 deletions
diff --git a/dev-python/aniso8601/Manifest b/dev-python/aniso8601/Manifest new file mode 100644 index 000000000000..53c0271517bd --- /dev/null +++ b/dev-python/aniso8601/Manifest @@ -0,0 +1,2 @@ +DIST aniso8601-4.0.1.tar.gz 109849 BLAKE2B 487bf340e181997219c2e39ed887161c3f5daa336cee79ce947b55a11c463b439086c3985fc93184de550f5e34e03f2d855ccb9a3072c0dc16ac21bf02a7e78f SHA512 5638ebf82a1a1aceee866eb17e8e4b5c8023961a9e31ce3e12123b89dba0ea0924e10a6aa458c838fcfdb72b94af4e81b3e9e8805cb534a1eccaf5a51f2026c9 +DIST aniso8601-8.0.0.tar.gz 37007 BLAKE2B bb5f42928308fab7746cbea364c03db4813b1b25883495d0488eb755e14f465300662b07c4ccfd03328a0c0f07ed87056ccc13f2652648c4838b0433740fc3ab SHA512 1e6c43f77993e829833d819f7c2b9b1d31f30ca46e258faac0e0b3be864da07436ae34f05710309302477bb3eede5966c95ef3b124c9b353b306c2272dc4cb9d diff --git a/dev-python/aniso8601/aniso8601-4.0.1.ebuild b/dev-python/aniso8601/aniso8601-4.0.1.ebuild new file mode 100644 index 000000000000..c4edf99b8b64 --- /dev/null +++ b/dev-python/aniso8601/aniso8601-4.0.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A library for parsing ISO 8601 strings" +HOMEPAGE="https://bitbucket.org/nielsenb/aniso8601/ https://pypi.org/project/aniso8601/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 arm64 x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}"/${P}-mock.patch ) + +python_test() { + "${PYTHON}" -m unittest discover ${PN}/tests -v || die "tests fail with ${EPYTHON}" +} diff --git a/dev-python/aniso8601/aniso8601-8.0.0.ebuild b/dev-python/aniso8601/aniso8601-8.0.0.ebuild new file mode 100644 index 000000000000..118b9c5c1bc4 --- /dev/null +++ b/dev-python/aniso8601/aniso8601-8.0.0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A library for parsing ISO 8601 strings" +HOMEPAGE="https://bitbucket.org/nielsenb/aniso8601/ https://pypi.org/project/aniso8601/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=">=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}]" + +distutils_enable_tests unittest diff --git a/dev-python/aniso8601/files/aniso8601-4.0.1-mock.patch b/dev-python/aniso8601/files/aniso8601-4.0.1-mock.patch new file mode 100644 index 000000000000..11cf4ca70cf6 --- /dev/null +++ b/dev-python/aniso8601/files/aniso8601-4.0.1-mock.patch @@ -0,0 +1,113 @@ +From 12c2e06a88832fa208c9c0361e5ce91436a5d5ac Mon Sep 17 00:00:00 2001 +From: Tim Harder <radhermit@gmail.com> +Date: Thu, 27 Dec 2018 01:42:45 -0600 +Subject: [PATCH] Use mock from unittest for python3. + +--- + aniso8601/tests/test_builder.py | 5 ++++- + aniso8601/tests/test_date.py | 5 ++++- + aniso8601/tests/test_duration.py | 5 ++++- + aniso8601/tests/test_interval.py | 5 ++++- + aniso8601/tests/test_time.py | 5 ++++- + aniso8601/tests/test_timezone.py | 5 ++++- + 6 files changed, 24 insertions(+), 6 deletions(-) + +diff --git a/aniso8601/tests/test_builder.py b/aniso8601/tests/test_builder.py +index 453f781..aafc7fe 100644 +--- a/aniso8601/tests/test_builder.py ++++ b/aniso8601/tests/test_builder.py +@@ -9,7 +9,10 @@ + import datetime + import pickle + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + import dateutil.relativedelta + +diff --git a/aniso8601/tests/test_date.py b/aniso8601/tests/test_date.py +index 2c60245..a991be1 100644 +--- a/aniso8601/tests/test_date.py ++++ b/aniso8601/tests/test_date.py +@@ -7,7 +7,10 @@ + # of the BSD license. See the LICENSE file for details. + + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + + from aniso8601.exceptions import ISOFormatError +diff --git a/aniso8601/tests/test_duration.py b/aniso8601/tests/test_duration.py +index ed8383f..b835e1b 100644 +--- a/aniso8601/tests/test_duration.py ++++ b/aniso8601/tests/test_duration.py +@@ -7,7 +7,10 @@ + # of the BSD license. See the LICENSE file for details. + + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + + from aniso8601.exceptions import ISOFormatError, NegativeDurationError +diff --git a/aniso8601/tests/test_interval.py b/aniso8601/tests/test_interval.py +index d05909d..d14045d 100644 +--- a/aniso8601/tests/test_interval.py ++++ b/aniso8601/tests/test_interval.py +@@ -7,7 +7,10 @@ + # of the BSD license. See the LICENSE file for details. + + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + + from aniso8601.exceptions import ISOFormatError +diff --git a/aniso8601/tests/test_time.py b/aniso8601/tests/test_time.py +index 6cca13d..bade083 100644 +--- a/aniso8601/tests/test_time.py ++++ b/aniso8601/tests/test_time.py +@@ -7,7 +7,10 @@ + # of the BSD license. See the LICENSE file for details. + + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + + from aniso8601.resolution import TimeResolution +diff --git a/aniso8601/tests/test_timezone.py b/aniso8601/tests/test_timezone.py +index 77903cb..1f43052 100644 +--- a/aniso8601/tests/test_timezone.py ++++ b/aniso8601/tests/test_timezone.py +@@ -7,7 +7,10 @@ + # of the BSD license. See the LICENSE file for details. + + import unittest +-import mock ++try: ++ from unittest import mock ++except ImportError: ++ import mock + import aniso8601 + + from aniso8601.exceptions import ISOFormatError +-- +2.20.1 + diff --git a/dev-python/aniso8601/metadata.xml b/dev-python/aniso8601/metadata.xml new file mode 100644 index 000000000000..9e8722ac8898 --- /dev/null +++ b/dev-python/aniso8601/metadata.xml @@ -0,0 +1,13 @@ +<?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> + <upstream> + <remote-id type="pypi">aniso8601</remote-id> + <remote-id type="bitbucket">nielsenb/aniso8601</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
