summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-09-30 08:22:02 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-30 08:24:42 +0200
commit09afe81659a7531a1583655d625111daa78ff107 (patch)
tree98e8734c3e775f33ad366f96d4153217545f0f7b /dev-python/isoduration
parentdev-python/arrow: Enable pypy3 (diff)
downloadgentoo-09afe81659a7531a1583655d625111daa78ff107.tar.gz
gentoo-09afe81659a7531a1583655d625111daa78ff107.tar.bz2
gentoo-09afe81659a7531a1583655d625111daa78ff107.zip
dev-python/isoduration: New dep of dev-python/jsonschema
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/isoduration')
-rw-r--r--dev-python/isoduration/Manifest1
-rw-r--r--dev-python/isoduration/isoduration-20.11.0.ebuild32
-rw-r--r--dev-python/isoduration/metadata.xml13
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/isoduration/Manifest b/dev-python/isoduration/Manifest
new file mode 100644
index 000000000000..65f88eed086c
--- /dev/null
+++ b/dev-python/isoduration/Manifest
@@ -0,0 +1 @@
+DIST isoduration-20.11.0.gh.tar.gz 15909 BLAKE2B fb5c3c383aa000c4650490b701fc091c740e45cf782aa929824e3f3e5601d4de82a68a9430f450b42da3658105c87cb293a98b94c77fdf03a1702e6d103a257a SHA512 9b3dd5cc540bba35a73aab01bf1f0274871b93b03ff72f8cc63fa0d2ec43e1f54deb95bad2323aa4cb8066b1b5401f426175792c062cf46449c087601dbe0420
diff --git a/dev-python/isoduration/isoduration-20.11.0.ebuild b/dev-python/isoduration/isoduration-20.11.0.ebuild
new file mode 100644
index 000000000000..23bcc266e689
--- /dev/null
+++ b/dev-python/isoduration/isoduration-20.11.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Operations with ISO 8601 durations"
+HOMEPAGE="
+ https://pypi.org/project/isoduration/
+ https://github.com/bolsote/isoduration/"
+SRC_URI="
+ https://github.com/bolsote/isoduration/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-python/arrow-0.15.0[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/isodate[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+EPYTEST_IGNORE=(
+ tests/test_benchmark.py
+)
diff --git a/dev-python/isoduration/metadata.xml b/dev-python/isoduration/metadata.xml
new file mode 100644
index 000000000000..1f3f97251146
--- /dev/null
+++ b/dev-python/isoduration/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">isoduration</remote-id>
+ <remote-id type="github">bolsote/isoduration</remote-id>
+ </upstream>
+</pkgmetadata>