mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
New package: python3-svgelements-1.9.6
This commit is contained in:
parent
1652f53806
commit
eda80990e0
2 changed files with 44 additions and 0 deletions
23
srcpkgs/python3-svgelements/patches/fix_assert.patch
Normal file
23
srcpkgs/python3-svgelements/patches/fix_assert.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
diff --git a/test/test_cubic_bezier.py b/test/test_cubic_bezier.py
|
||||||
|
index a7283e5..50148c2 100644
|
||||||
|
--- a/test/test_cubic_bezier.py
|
||||||
|
+++ b/test/test_cubic_bezier.py
|
||||||
|
@@ -79,4 +79,4 @@ class TestElementCubicBezierPoint(unittest.TestCase):
|
||||||
|
p = Path(transform=Matrix(682.657124793113, 0.000000000003, -0.000000000003, 682.657124793113, 257913.248909660178, -507946.354527872754))
|
||||||
|
p += CubicBezier(start=Point(-117.139521365,1480.99923469), control1=Point(-41.342266634,1505.62725567), control2=Point(40.3422666342,1505.62725567), end=Point(116.139521365,1480.99923469))
|
||||||
|
bounds = p.bbox()
|
||||||
|
- self.assertNotAlmostEquals(bounds[1], bounds[3], delta=100)
|
||||||
|
+ self.assertNotAlmostEqual(bounds[1], bounds[3], delta=100)
|
||||||
|
diff --git a/test/test_write.py b/test/test_write.py
|
||||||
|
index 85e5bb5..33c94a6 100644
|
||||||
|
--- a/test/test_write.py
|
||||||
|
+++ b/test/test_write.py
|
||||||
|
@@ -24,7 +24,7 @@ class TestElementWrite(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_write_group(self):
|
||||||
|
g = Group()
|
||||||
|
- self.assertEquals(g.string_xml(), "<g />")
|
||||||
|
+ self.assertEqual(g.string_xml(), "<g />")
|
||||||
|
|
||||||
|
def test_write_rect(self):
|
||||||
|
r = Rect("1in", "1in", "3in", "3in", rx="5%")
|
21
srcpkgs/python3-svgelements/template
Normal file
21
srcpkgs/python3-svgelements/template
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Template file for 'python3-svgelements'
|
||||||
|
pkgname=python3-svgelements
|
||||||
|
version=1.9.6
|
||||||
|
revision=1
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
checkdepends="python3-numpy python3-scipy python3-Pillow"
|
||||||
|
short_desc="SVG Parsing for Elements, Paths, and other SVG Objects"
|
||||||
|
maintainer="Luciogi <lucigithubcommit@skiff.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/meerk40t/svgelements"
|
||||||
|
distfiles="${PYPI_SITE}/s/svgelements/svgelements-${version}.tar.gz"
|
||||||
|
checksum=7c02ad6404cd3d1771fd50e40fbfc0550b0893933466f86a6eb815f3ba3f37f7
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
rm -r build/lib/test test
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue