diff options
author | 2020-12-18 21:54:28 +0100 | |
---|---|---|
committer | 2021-01-16 10:33:30 +0200 | |
commit | 9d903f189f559bc75ff45e30060812984b43e18a (patch) | |
tree | b14600dfa8e3a691213ecef7bffd011a877532f9 /dev-python/pendulum | |
parent | dev-python/pytzdata: Timezon database for python (diff) | |
download | gentoo-9d903f189f559bc75ff45e30060812984b43e18a.tar.gz gentoo-9d903f189f559bc75ff45e30060812984b43e18a.tar.bz2 gentoo-9d903f189f559bc75ff45e30060812984b43e18a.zip |
dev-python/pendulum: Drop-in replacement for the standard datetime class
* Dependency of dev-db/pgcli
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/pendulum')
-rw-r--r-- | dev-python/pendulum/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pendulum/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/pendulum/pendulum-2.1.2.ebuild | 36 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pendulum/Manifest b/dev-python/pendulum/Manifest new file mode 100644 index 000000000000..3e628f72f341 --- /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 000000000000..59e2612c0884 --- /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>jakov.smolic@sartura.hr</email> + <name>Jakov Smolic</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</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 000000000000..76cd964624dd --- /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 |