summaryrefslogtreecommitdiff
path: root/dev-python/vdf
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/vdf')
-rw-r--r--dev-python/vdf/Manifest2
-rw-r--r--dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch9
-rw-r--r--dev-python/vdf/vdf-3.2-r1.ebuild22
3 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/vdf/Manifest b/dev-python/vdf/Manifest
index 4ef310cbb21a..d06e1305a256 100644
--- a/dev-python/vdf/Manifest
+++ b/dev-python/vdf/Manifest
@@ -1,3 +1,5 @@
+AUX vdf-3.2-mock_from_stdlib.patch 144 BLAKE2B 8a32644d40f90620c050b64cd80aec42d564e0b5f032b0972d2c4219b0b21630b861163bfa716e9d826451b7050cfbae74c2930417f4b0fbbedb9beb1cdfd246 SHA512 aa9226aae713472d10eabdc113e37ae80989c7b4e0b03922a4ce49d5f228ce012c05ee29353caf5a930f5b948b138b5f9ff1fe100f39f839d5638e25f0a51dd6
DIST vdf-3.2.tar.gz 15050 BLAKE2B 62118879607462d9c205ae454f9187bb20267d5eefb3f0cf7efc5b93585b5400d565063dcacceb4dddf489371129bd4710ea2bc09db35a9739add1c4dafa992c SHA512 c9b60f6999c08b2610ea6ad1e6fd9d143ffabd6a93af65fc5ee39d775a6f9a2dccb002f19ce72a1d7de6e53188fb98bd4a0dc4074047b74ca53991294310175f
+EBUILD vdf-3.2-r1.ebuild 533 BLAKE2B bb03c3b237200d7cfac66aed5517eb37c94325720c3785f8471135abb69565232a9abeebe52b35eac8fb77135c8e5d9df6a05315aaea34e33e9068e7e39d283a SHA512 70c6a034e78f07f7b21ca2d264dbc248decc84dacc222737180fb7a53dbe117b896e12b35e8e646482cb4a8f002ca634ba6abcda068013647761d753cc3242c6
EBUILD vdf-3.2.ebuild 518 BLAKE2B 7bcc3f44c6de2eba10ab1530cb57a803a630e7876fd2072d6a86da346afe75e729c5cf3199a1b98200a2f3ccd77897edf88289cc1f60eef4b67ba0233cd93c98 SHA512 8541f1031cf1c1bb322505b2ef64c823cd24754eacfd061aff9e1cb67578a3beee929aee3dad0feefca8d3c218a693ba19636f93c2a0f287c0e650a9157d2b90
MISC metadata.xml 366 BLAKE2B df19925265c9cbb45a9e51a18c52bd72e6b544cb42fe5ce192a94a351faa38242c0d85ba0d9ba1f83371990c011ea30233960c5a0ca3349bee27d1bd94ba1b61 SHA512 2cb7d9ef5bdfc2b9ba4d991c03fe882f41cd96be13e8e5d2ef49217c7ab5962c1f02ad21aa9bb8a3d4dccecacf0a9c5ea3c7022ee2cc0c88fb42662a3f8a751c
diff --git a/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch b/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch
new file mode 100644
index 000000000000..511e5dd1ddc3
--- /dev/null
+++ b/dev-python/vdf/files/vdf-3.2-mock_from_stdlib.patch
@@ -0,0 +1,9 @@
+--- a/tests/test_vdf.py
++++ b/tests/test_vdf.py
+@@ -1,5 +1,5 @@
+ import unittest
+-import mock
++import unittest.mock as mock
+ import sys
+
+ try:
diff --git a/dev-python/vdf/vdf-3.2-r1.ebuild b/dev-python/vdf/vdf-3.2-r1.ebuild
new file mode 100644
index 000000000000..2c3eaf316de0
--- /dev/null
+++ b/dev-python/vdf/vdf-3.2-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A module for (de)serialization to and from VDF, Valve's key-value text format"
+HOMEPAGE="https://github.com/ValvePython/vdf"
+SRC_URI="https://codeload.github.com/ValvePython/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.2-mock_from_stdlib.patch
+)
+
+distutils_enable_tests pytest