summaryrefslogtreecommitdiff
path: root/dev-python/svgwrite
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/svgwrite
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/svgwrite')
-rw-r--r--dev-python/svgwrite/Manifest2
-rw-r--r--dev-python/svgwrite/files/svgwrite-1.3.1-fix-tests-py38.patch39
-rw-r--r--dev-python/svgwrite/metadata.xml9
-rw-r--r--dev-python/svgwrite/svgwrite-1.3.1.ebuild27
-rw-r--r--dev-python/svgwrite/svgwrite-1.4.ebuild24
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/svgwrite/Manifest b/dev-python/svgwrite/Manifest
new file mode 100644
index 000000000000..98556f6673dd
--- /dev/null
+++ b/dev-python/svgwrite/Manifest
@@ -0,0 +1,2 @@
+DIST svgwrite-1.3.1.tar.gz 249712 BLAKE2B 3f03f841d4e1bdf3e8d3d47c86301bcc22f205d71d265902f0ccb5a78710815521f34589ce261a463d7e80c6eeaac60d2090895ae1157ab6f20c0f5c21f5e2e2 SHA512 a4d2db34194923055c6e92c0af5540eef767cf8481d7c991b357f5bc77fd1874bba65220e7a7ff3a4da4bd30a49663b6ac514adb2b41cb4b087a7bb64053ac0a
+DIST svgwrite-1.4.tar.gz 251138 BLAKE2B b105fa60ed75628c59b3ad4d0ea32dddf83f618e213ce6974b5db0e93d519e563eb5a9ff5e37012f71c7ce79579ca927acfb8709d2f8e8ad316b04bae8abafcb SHA512 b722fc51c6b3755064942bb6c7ea199ba5902ee37e426962ed24e0b67659e72e8da36cd2516193e2348a939ab2ccd2c5114349ac72d7b9ea52a7b7d68ad1ce74
diff --git a/dev-python/svgwrite/files/svgwrite-1.3.1-fix-tests-py38.patch b/dev-python/svgwrite/files/svgwrite-1.3.1-fix-tests-py38.patch
new file mode 100644
index 000000000000..872a113a2a3d
--- /dev/null
+++ b/dev-python/svgwrite/files/svgwrite-1.3.1-fix-tests-py38.patch
@@ -0,0 +1,39 @@
+From 36ec11ccf3275c6ab9156625d322def9c324e090 Mon Sep 17 00:00:00 2001
+From: mozman <me@mozman.at>
+Date: Wed, 6 Nov 2019 05:24:45 +0100
+Subject: [PATCH] ignore svg tag at pretty print testing
+
+Order of svg attribute of the svg tag has changed in Python 3.8,
+ignoring this tag is the easiest way to solve this problem.
+---
+ tests/test_pretty_xml.py | 3 ++-
+ tox.ini | 2 +-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_pretty_xml.py b/tests/test_pretty_xml.py
+index c004626..14a826e 100644
+--- a/tests/test_pretty_xml.py
++++ b/tests/test_pretty_xml.py
+@@ -16,7 +16,8 @@ class TestPrettyXML(unittest.TestCase):
+ def test_pretty_print(self):
+ result = pretty_xml(XML_UGLY).split('\n')
+ expect = XML_PRETTY.split('\n')
+- for e, r in zip(expect, result):
++ # skip svg tag, order of attributes changes often by new Python releases
++ for e, r in zip(expect[1:], result[1:]):
+ self.assertEqual(e, r)
+
+ def test_empty_string(self):
+diff --git a/tox.ini b/tox.ini
+index 55de9ce..fe450be 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -4,7 +4,7 @@
+ # and then run "tox" from this directory.
+
+ [tox]
+-envlist = py36, py37, pypy
++envlist = py36, py37, py38, pypy
+
+ [testenv]
+ commands = pytest tests
diff --git a/dev-python/svgwrite/metadata.xml b/dev-python/svgwrite/metadata.xml
new file mode 100644
index 000000000000..76e7dba25fee
--- /dev/null
+++ b/dev-python/svgwrite/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-python/svgwrite/svgwrite-1.3.1.ebuild b/dev-python/svgwrite/svgwrite-1.3.1.ebuild
new file mode 100644
index 000000000000..77b8babdc570
--- /dev/null
+++ b/dev-python/svgwrite/svgwrite-1.3.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit distutils-r1
+
+DESCRIPTION="Python Package to write SVG files"
+HOMEPAGE="https://github.com/mozman/svgwrite"
+SRC_URI="https://github.com/mozman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-tests-py38.patch
+)
+
+distutils_enable_tests pytest
diff --git a/dev-python/svgwrite/svgwrite-1.4.ebuild b/dev-python/svgwrite/svgwrite-1.4.ebuild
new file mode 100644
index 000000000000..a6ee8c83c435
--- /dev/null
+++ b/dev-python/svgwrite/svgwrite-1.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit distutils-r1
+
+DESCRIPTION="Python Package to write SVG files"
+HOMEPAGE="https://github.com/mozman/svgwrite"
+SRC_URI="https://github.com/mozman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # fetches from the Internet
+ sed -i -e 's:test_embed_google_web_font:_&:' \
+ tests/test_style.py || die
+ distutils-r1_src_prepare
+}