dev-python/dataclasses-json: new package, add 0.6.7

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
Nicolas PARLANT 2024-11-28 22:03:17 +00:00
parent 72054efff7
commit 5ae66c5f57
No known key found for this signature in database
GPG Key ID: DF6D10470D9B63B3
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST dataclasses-json-0.6.7.gh.tar.gz 77810 BLAKE2B 99b2d403cd65f77e908727d2cce66a693310eb86544a9f859cbf6cbac7c9946322c4fa99751a8d37c0fc110aabf9ced8b59235249d065335bb729987d2f4b47e SHA512 d9b85a6821904a9f48482ff20e496e4437ff6a7f00bc5acd49b0295cfb5bbec125199f0343950f1f9ba17261aa5e4984cde292b943a17ef330d70cfc47a4ce64

View File

@ -0,0 +1,50 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Easily serialize Data Classes to and from JSON"
HOMEPAGE="
https://github.com/lidatong/dataclasses-json/
https://pypi.org/project/dataclasses-json/
"
SRC_URI="https://github.com/lidatong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="!test? ( test )"
RDEPEND="
${PYTHON_DEPS}
dev-python/marshmallow[${PYTHON_USEDEP}]
dev-python/typing-inspect[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="
${DISTUTILS_DEPS}
${PYTHON_DEPS}
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/mypy[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare(){
default
sed -i \
-e 's:0.0.0:'${PV}':' \
-e 's:, ["]poetry-dynamic-versioning["]::' \
-e 's:poetry_dynamic_versioning.backend:poetry.core.masonry.api:' \
pyproject.toml || die
}

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>nicolas.parlant@parhuet.fr</email>
<name>Nicolas PARLANT</name>
</maintainer>
<upstream>
<remote-id type="github">lidatong/dataclasses-json</remote-id>
<remote-id type="pypi">dataclasses-json</remote-id>
</upstream>
</pkgmetadata>