diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-07-08 09:59:19 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-07-08 10:26:02 +0200 |
commit | f038d8dc1fa47e3070d1c8abf3f6776037487478 (patch) | |
tree | 37a6945e7b8820d6db1b92bd64ae2eb03c096196 /dev-python/pytest-freezegun | |
parent | dev-python/distlib: Bump to 0.3.1, fix tests (diff) | |
download | gentoo-f038d8dc1fa47e3070d1c8abf3f6776037487478.tar.gz gentoo-f038d8dc1fa47e3070d1c8abf3f6776037487478.tar.bz2 gentoo-f038d8dc1fa47e3070d1c8abf3f6776037487478.zip |
dev-python/pytest-freezegun: New package, needed for virtualenv
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-freezegun')
-rw-r--r-- | dev-python/pytest-freezegun/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-freezegun/metadata.xml | 7 | ||||
-rw-r--r-- | dev-python/pytest-freezegun/pytest-freezegun-0.4.1.ebuild | 29 |
3 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/pytest-freezegun/Manifest b/dev-python/pytest-freezegun/Manifest new file mode 100644 index 000000000000..ba7dfadd97b4 --- /dev/null +++ b/dev-python/pytest-freezegun/Manifest @@ -0,0 +1 @@ +DIST pytest-freezegun-0.4.1.gh.tar.gz 6809 BLAKE2B 258fcc5976c50dbc923ebbf7ba552b2ff2a058e5864f9b2c4a1339e585e0e245ba2346ff65a284fed71fec388a48dbf66e81a752d3b53b65897f3a687e05ed92 SHA512 42cebf13538e9a8aa992555e086886210dfb40b95fd8a4bb8bb79c5968e08aafa1979ff3cb28425993b71f5df91d77012946e36f14ad512a9d3d856eddb5fe3e diff --git a/dev-python/pytest-freezegun/metadata.xml b/dev-python/pytest-freezegun/metadata.xml new file mode 100644 index 000000000000..266e3f19ca59 --- /dev/null +++ b/dev-python/pytest-freezegun/metadata.xml @@ -0,0 +1,7 @@ +<?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> +</pkgmetadata> diff --git a/dev-python/pytest-freezegun/pytest-freezegun-0.4.1.ebuild b/dev-python/pytest-freezegun/pytest-freezegun-0.4.1.ebuild new file mode 100644 index 000000000000..9ce542c9a353 --- /dev/null +++ b/dev-python/pytest-freezegun/pytest-freezegun-0.4.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Easily freeze time in pytest test + fixtures" +HOMEPAGE="https://github.com/ktosiek/pytest-freezegun" +SRC_URI=" + https://github.com/ktosiek/pytest-freezegun/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_test() { + distutils_install_for_testing + pytest -vv || die "Tests failed with ${EPYTHON}" +} |