summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-10 17:40:04 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-10 19:45:58 +0200
commit686255b6c0fdd1df25f65b7970afab990f9e4370 (patch)
tree9b0e0a200fa19126424c0bbd5018ee05af475c87 /dev-python/cattrs
parentdev-python/immutables: Add ~x86 keyword (diff)
downloadgentoo-686255b6c0fdd1df25f65b7970afab990f9e4370.tar.gz
gentoo-686255b6c0fdd1df25f65b7970afab990f9e4370.tar.bz2
gentoo-686255b6c0fdd1df25f65b7970afab990f9e4370.zip
dev-python/cattrs: New dep of dev-python/requests-cache
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/cattrs')
-rw-r--r--dev-python/cattrs/Manifest1
-rw-r--r--dev-python/cattrs/cattrs-1.7.1.ebuild47
-rw-r--r--dev-python/cattrs/metadata.xml11
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/cattrs/Manifest b/dev-python/cattrs/Manifest
new file mode 100644
index 000000000000..95b46e8d81d2
--- /dev/null
+++ b/dev-python/cattrs/Manifest
@@ -0,0 +1 @@
+DIST cattrs-1.7.1.gh.tar.gz 85853 BLAKE2B 36c411ffa92eb263b85d48c81daeea1deea10d5779c6cd1f57988792ef5ec68bedc20b59620077e6500c2e41bb91e83f110467083f90219be7e2419c3880ed94 SHA512 a72370541cbec8928f9e1ae0c130c94e71d826ac522eb39062840d4b78a7f6aacd13395b677f6ff1453e327af31a71af0e5f81893f57ba33edbb53b7683835b2
diff --git a/dev-python/cattrs/cattrs-1.7.1.ebuild b/dev-python/cattrs/cattrs-1.7.1.ebuild
new file mode 100644
index 000000000000..556f4c5620bc
--- /dev/null
+++ b/dev-python/cattrs/cattrs-1.7.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Composable complex class support for attrs and dataclasses."
+HOMEPAGE="
+ https://pypi.org/project/cattrs/
+ https://github.com/Tinche/cattrs/"
+SRC_URI="
+ https://github.com/Tinche/cattrs/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/immutables[${PYTHON_USEDEP}]
+ )"
+# test_preconf:
+# dev-python/bson[${PYTHON_USEDEP}]
+# dev-python/msgpack[${PYTHON_USEDEP}]
+# dev-python/orjson[${PYTHON_USEDEP}]
+# dev-python/pyyaml[${PYTHON_USEDEP}]
+# dev-python/tomlkit[${PYTHON_USEDEP}]
+# dev-python/ujson[${PYTHON_USEDEP}]
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -i -e 's:--benchmark.*::' setup.cfg || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ # unpackaged deps, see above
+ epytest tests --ignore tests/test_preconf.py
+}
diff --git a/dev-python/cattrs/metadata.xml b/dev-python/cattrs/metadata.xml
new file mode 100644
index 000000000000..ca8344b55860
--- /dev/null
+++ b/dev-python/cattrs/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="github">Tinche/cattrs</remote-id>
+ <remote-id type="pypi">cattrs</remote-id>
+ </upstream>
+</pkgmetadata>