summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/sumtypes/Manifest1
-rw-r--r--dev-python/sumtypes/metadata.xml12
-rw-r--r--dev-python/sumtypes/sumtypes-0.1_alpha6.ebuild31
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/sumtypes/Manifest b/dev-python/sumtypes/Manifest
new file mode 100644
index 000000000000..e043228984de
--- /dev/null
+++ b/dev-python/sumtypes/Manifest
@@ -0,0 +1 @@
+DIST sumtypes-0.1a6.gh.tar.gz 6535 BLAKE2B 5441b2c89515e9c24b0ca8e5ee6294272290bc452391ca6ce5adbd5befcf2f1879859e84d011b0a5be5a3690a138e9f2e30c38c15171160556eb863d6465b4ab SHA512 1e2fbcb6fe42db4aeeadb3e45d1629027eb99786fffaed03c61056c24a760e6bcb75001e700e4a40b67647f09d0c83d200ee381f62a1483874553f59121f866a
diff --git a/dev-python/sumtypes/metadata.xml b/dev-python/sumtypes/metadata.xml
new file mode 100644
index 000000000000..98c7a6352e36
--- /dev/null
+++ b/dev-python/sumtypes/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>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">radix/sumtypes</remote-id>
+ <remote-id type="pypi">sumtypes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/sumtypes/sumtypes-0.1_alpha6.ebuild b/dev-python/sumtypes/sumtypes-0.1_alpha6.ebuild
new file mode 100644
index 000000000000..5a09078da038
--- /dev/null
+++ b/dev-python/sumtypes/sumtypes-0.1_alpha6.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1
+
+MY_P=${P/_alpha/a}
+DESCRIPTION="Sum Types, aka Tagged Unions, for Python"
+HOMEPAGE="
+ https://github.com/radix/sumtypes/
+ https://pypi.org/project/sumtypes/
+"
+SRC_URI="
+ https://github.com/radix/sumtypes/archive/${PV/_alpha/a}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/attrs[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest