From f30a199d36628024e60886df10a98548c7fdafb4 Mon Sep 17 00:00:00 2001 From: mustaqim Date: Fri, 4 Mar 2022 10:27:55 +0200 Subject: [PATCH] New package: python3-life-line-chart-1.7.5 --- srcpkgs/python3-life-line-chart/files/LICENSE | 21 +++++++++++++++++++ .../patches/fix_collections_import.patch | 14 +++++++++++++ srcpkgs/python3-life-line-chart/template | 18 ++++++++++++++++ srcpkgs/python3-svgwrite/template | 17 +++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 srcpkgs/python3-life-line-chart/files/LICENSE create mode 100644 srcpkgs/python3-life-line-chart/patches/fix_collections_import.patch create mode 100644 srcpkgs/python3-life-line-chart/template create mode 100644 srcpkgs/python3-svgwrite/template diff --git a/srcpkgs/python3-life-line-chart/files/LICENSE b/srcpkgs/python3-life-line-chart/files/LICENSE new file mode 100644 index 000000000000..b214362a3855 --- /dev/null +++ b/srcpkgs/python3-life-line-chart/files/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 CWSchulze + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/srcpkgs/python3-life-line-chart/patches/fix_collections_import.patch b/srcpkgs/python3-life-line-chart/patches/fix_collections_import.patch new file mode 100644 index 000000000000..573f3627a772 --- /dev/null +++ b/srcpkgs/python3-life-line-chart/patches/fix_collections_import.patch @@ -0,0 +1,14 @@ +diff --git a/life_line_chart/SimpleSVGItems.py b/life_line_chart/SimpleSVGItems.py +index 09d5ede..7e2cb44 100644 +--- a/life_line_chart/SimpleSVGItems.py ++++ b/life_line_chart/SimpleSVGItems.py +@@ -1,4 +1,8 @@ +-from collections import MutableSequence ++try: ++ from collections.abc import MutableSequence ++except ImportError: ++ # Required for python versions < 3.9 ++ from collections import MutableSequence + + + class Line(object): diff --git a/srcpkgs/python3-life-line-chart/template b/srcpkgs/python3-life-line-chart/template new file mode 100644 index 000000000000..b722628111d1 --- /dev/null +++ b/srcpkgs/python3-life-line-chart/template @@ -0,0 +1,18 @@ +# Template file for 'python3-life-line-chart' +pkgname=python3-life-line-chart +version=1.7.5 +revision=1 +wrksrc="life_line_chart-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-svgwrite" +short_desc="Generate ancestor (genealogy) chart" +maintainer="mustaqim " +license="MIT" +homepage="https://github.com/CWSchulze/life_line_chart" +distfiles="${PYPI_SITE}/l/life_line_chart/life_line_chart-${version}.tar.gz" +checksum=cc3a159abfbec75f5c1ac1f959289ec77729c968ae143517906b0e9b3b932a4c + +post_install() { + vlicense ${FILESDIR}/LICENSE +} diff --git a/srcpkgs/python3-svgwrite/template b/srcpkgs/python3-svgwrite/template new file mode 100644 index 000000000000..471e6b1aa00b --- /dev/null +++ b/srcpkgs/python3-svgwrite/template @@ -0,0 +1,17 @@ +# Template file for 'python3-svgwrite' +pkgname=python3-svgwrite +version=1.4.1 +revision=1 +wrksrc="svgwrite-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Python package to write SVG files" +maintainer="mustaqim " +license="custom:Manfred Moitzi" +homepage="https://github.com/mozman/svgwrite" +distfiles="${PYPI_SITE}/s/svgwrite/svgwrite-${version}.zip" +checksum=e220a4bf189e7e214a55e8a11421d152b5b6fb1dd660c86a8b6b61fe8cc2ac48 + +post_install() { + vlicense LICENSE.TXT +}