summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-03-05 11:30:26 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-03-09 11:13:59 +0200
commita8f150a837a8da4586de60d6c5b6ddc53de78e8f (patch)
treecbf8bbc09b22e83ad01f4414ee58bd55f26e15e5 /dev-python/deepmerge
parentnet-p2p/eiskaltdcpp: Strip ie locale when USE=gtk (diff)
downloadgentoo-a8f150a837a8da4586de60d6c5b6ddc53de78e8f.tar.gz
gentoo-a8f150a837a8da4586de60d6c5b6ddc53de78e8f.tar.bz2
gentoo-a8f150a837a8da4586de60d6c5b6ddc53de78e8f.zip
dev-python/deepmerge: Add tests
* Upstream doesn't ship tests in pypi tarballs, and latest github release is outdated, so let's just use the commit tag (no changes with regards to 0.1.1 except for tests). Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/deepmerge')
-rw-r--r--dev-python/deepmerge/Manifest1
-rw-r--r--dev-python/deepmerge/deepmerge-0.1.1_p1.ebuild24
2 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/deepmerge/Manifest b/dev-python/deepmerge/Manifest
index 2a50239627c..bf713bbb191 100644
--- a/dev-python/deepmerge/Manifest
+++ b/dev-python/deepmerge/Manifest
@@ -1 +1,2 @@
DIST deepmerge-0.1.1.tar.gz 5432 BLAKE2B 18f54fa4f0504c1825300373665c99ef1f0ea8f779b00f89cfe8ad44861cb4991cf5694c08788ac1ad3b52686734967dbb954553ba84741a71a70e24c98e6b18 SHA512 209ff3ca6be02d788f9740b6241e2ae0366592051933438e887cac5f89f86201bb870336e94d1bacff709dd63c7644161b33ed1da29da1b823b37987813862c0
+DIST deepmerge-0.1.1_p1.tar.gz 14317 BLAKE2B 0e327b129a63f1f3fd5a18ae5c895452a823401f54b614c6c085f82e9332b86800e9ccc42fbd2d6c9904e6ae0bc999b393e9af542c310a76c8975567b9b2346f SHA512 72a40609a31dbb692908365f32a94527280e7d1bceed27f27a9a17d6f30551054235de608cef5e88f285bf33b9c155c0aa4aebf74f1c9f8049f0751073593083
diff --git a/dev-python/deepmerge/deepmerge-0.1.1_p1.ebuild b/dev-python/deepmerge/deepmerge-0.1.1_p1.ebuild
new file mode 100644
index 00000000000..05d1db1f270
--- /dev/null
+++ b/dev-python/deepmerge/deepmerge-0.1.1_p1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+MY_COMMIT="587279c6771abb13ed831ebc2cba3c9e4d81e7e5"
+DESCRIPTION="Tools to handle merging of nested data structures in python"
+HOMEPAGE="https://deepmerge.readthedocs.io/en/latest"
+SRC_URI="https://github.com/toumorokoshi/deepmerge/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ sed -i -e '/vcver/d' setup.py || die
+ distutils-r1_python_prepare_all
+}