diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-02 19:38:08 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-02 19:41:11 +0100 |
commit | 154c9483595d7eb309bb3f06a08f4ca1935a8bfb (patch) | |
tree | 35f3ca4908c54c42c9e2755488f355cba9e7f71c /dev-python/python-snappy | |
parent | dev-python/snappy: Inline MY_PN prior to rename (diff) | |
download | gentoo-154c9483595d7eb309bb3f06a08f4ca1935a8bfb.tar.gz gentoo-154c9483595d7eb309bb3f06a08f4ca1935a8bfb.tar.bz2 gentoo-154c9483595d7eb309bb3f06a08f4ca1935a8bfb.zip |
Rename dev-python/{snappy → python-snappy}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-snappy')
-rw-r--r-- | dev-python/python-snappy/Manifest | 1 | ||||
-rw-r--r-- | dev-python/python-snappy/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-snappy/python-snappy-0.6.1.ebuild | 37 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/python-snappy/Manifest b/dev-python/python-snappy/Manifest new file mode 100644 index 000000000000..fc4f9904af29 --- /dev/null +++ b/dev-python/python-snappy/Manifest @@ -0,0 +1 @@ +DIST python-snappy-0.6.1.tar.gz 24110 BLAKE2B 66ba24aa1768084c87188dde6eb6c98daf90da39e49902bbc283226aaf28b8d267bbc69f3cb9f30d9aaf64b3e25cc0fae47113bcc65f18dbec2128294c0dbe4b SHA512 43301f568633068bbdcb3dc318f37efcabbb5bd3f61a06b3a3a476006c3cbc1dfddea4ac2de0876bb127b354aa81ccc55dc44631dc8fba06036a0b6c7dfbdb9b diff --git a/dev-python/python-snappy/metadata.xml b/dev-python/python-snappy/metadata.xml new file mode 100644 index 000000000000..8e5d00faef0e --- /dev/null +++ b/dev-python/python-snappy/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">python-snappy</remote-id> + <remote-id type="github">andrix/python-snappy</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-snappy/python-snappy-0.6.1.ebuild b/dev-python/python-snappy/python-snappy-0.6.1.ebuild new file mode 100644 index 000000000000..43168156fe6b --- /dev/null +++ b/dev-python/python-snappy/python-snappy-0.6.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +MY_PN=python-snappy +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Python library for the snappy compression library from Google" +HOMEPAGE=" + https://github.com/andrix/python-snappy/ + https://pypi.org/project/python-snappy/ +" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +KEYWORDS="amd64 arm arm64 ~riscv x86 ~amd64-linux ~x86-linux" +SLOT="0" + +DEPEND=" + >=app-arch/snappy-1.0.2:= +" +RDEPEND=" + ${DEPEND} +" + +python_test() { + cp test*.py "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + "${EPYTHON}" -m unittest -v || die "Tests fail with ${EPYTHON}" +} |