summaryrefslogtreecommitdiff
path: root/dev-python/sumtypes
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sumtypes')
-rw-r--r--dev-python/sumtypes/Manifest3
-rw-r--r--dev-python/sumtypes/metadata.xml12
-rw-r--r--dev-python/sumtypes/sumtypes-0.1_alpha6.ebuild31
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/sumtypes/Manifest b/dev-python/sumtypes/Manifest
new file mode 100644
index 000000000000..09a268493a89
--- /dev/null
+++ b/dev-python/sumtypes/Manifest
@@ -0,0 +1,3 @@
+DIST sumtypes-0.1a6.gh.tar.gz 6535 BLAKE2B 5441b2c89515e9c24b0ca8e5ee6294272290bc452391ca6ce5adbd5befcf2f1879859e84d011b0a5be5a3690a138e9f2e30c38c15171160556eb863d6465b4ab SHA512 1e2fbcb6fe42db4aeeadb3e45d1629027eb99786fffaed03c61056c24a760e6bcb75001e700e4a40b67647f09d0c83d200ee381f62a1483874553f59121f866a
+EBUILD sumtypes-0.1_alpha6.ebuild 613 BLAKE2B 1a096a14a3d6b66e74251054a8e1f8111b9774fd11da6a41671accf24c7755da1be91f18af731d56d42279fce0e8b52dca7c02a500f16467e19e97bbc49760e7 SHA512 e3111319df7067c79ce8fed82dca0a36e17a9e5fce5d9abadcb4d7837614bf9efbfb67e54c69ecbf8a18bd87e4b33c50f19504e27fc4f4d18ef6a6232853e290
+MISC metadata.xml 368 BLAKE2B 674fbf5cd16e64e40d059b99b4fc909a68f571b55437e2bb0333124ca053fbc09934c018d4048d3b764a2bbe60065b9bbd66fcdd98d7f347d769e82d792461d0 SHA512 4babad4180f506d3181d62b6454f46e5d116e58b93aa4f5b3747f5cac614a9b441be9648e25d0c11d7b581ce9a6ae1ac9b4a265bb5ab1ff96f2ab240b0de8d0d
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..0cf152ec2958
--- /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 ~riscv"
+
+RDEPEND="
+ dev-python/attrs[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest