commit: 9d903f189f559bc75ff45e30060812984b43e18a Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> AuthorDate: Fri Dec 18 20:54:28 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sat Jan 16 08:33:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d903f18
dev-python/pendulum: Drop-in replacement for the standard datetime class * Dependency of dev-db/pgcli Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-python/pendulum/Manifest | 1 + dev-python/pendulum/metadata.xml | 15 +++++++++++++ dev-python/pendulum/pendulum-2.1.2.ebuild | 36 +++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) diff --git a/dev-python/pendulum/Manifest b/dev-python/pendulum/Manifest new file mode 100644 index 00000000000..3e628f72f34 --- /dev/null +++ b/dev-python/pendulum/Manifest @@ -0,0 +1 @@ +DIST pendulum-2.1.2.tar.gz 159885 BLAKE2B c95cd131fc95a0d19ef11f180cc42126cb8a6ea3aaf4b3bbedbc5ce4c1b37a6624f2a1be92f1a6fd6b1f14f5d20fa5f32e8230f896ab7a216f02f00e85b98738 SHA512 c367320ade0d10b7eb9c880286176161b925d7df052f7de85ddd169594bbe778776ea74df451f00186df98be3e32b7399c68ca4b40123e2c456206410e3a1ab2 diff --git a/dev-python/pendulum/metadata.xml b/dev-python/pendulum/metadata.xml new file mode 100644 index 00000000000..59e2612c088 --- /dev/null +++ b/dev-python/pendulum/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Jakov Smolic</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">sdispater/pendulum</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pendulum/pendulum-2.1.2.ebuild b/dev-python/pendulum/pendulum-2.1.2.ebuild new file mode 100644 index 00000000000..76cd964624d --- /dev/null +++ b/dev-python/pendulum/pendulum-2.1.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Drop-in replacement for the standard datetime class" +HOMEPAGE="https://pendulum.eustace.io/" +SRC_URI="https://github.com/sdispater/pendulum/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Requires timezone information which is not installed by default +# with dev-python/pytzdata, and otherwise approx. 50 out of 1600 +# tests are failing for now. Keeping the test dependencies +# commented for future tests fixups +RESTRICT="test" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytzdata[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +#BDEPEND=" +# test? ( +# dev-python/babel[${PYTHON_USEDEP}] +# dev-python/freezegun[${PYTHON_USEDEP}] +# dev-python/pytz[${PYTHON_USEDEP}] +# )" + +# distutils_enable_tests pytest
