From b5bff539744e725e440c960f45b26c1e461e4d83 Mon Sep 17 00:00:00 2001 From: Nyx70 Date: Fri, 24 Apr 2020 14:38:04 +0200 Subject: [PATCH] New package: python-coloredlogs-14.0, python-humanfriendly-8.2 --- srcpkgs/python-coloredlogs/template | 28 +++++++++++++++++++++++++++ srcpkgs/python-humanfriendly/template | 26 +++++++++++++++++++++++++ srcpkgs/python3-coloredlogs | 1 + srcpkgs/python3-humanfriendly | 1 + 4 files changed, 56 insertions(+) create mode 100644 srcpkgs/python-coloredlogs/template create mode 100644 srcpkgs/python-humanfriendly/template create mode 120000 srcpkgs/python3-coloredlogs create mode 120000 srcpkgs/python3-humanfriendly diff --git a/srcpkgs/python-coloredlogs/template b/srcpkgs/python-coloredlogs/template new file mode 100644 index 00000000000..3d73ac2da78 --- /dev/null +++ b/srcpkgs/python-coloredlogs/template @@ -0,0 +1,28 @@ +# Template file for 'python-coloredlogs' +pkgname=python-coloredlogs +version=14.0 +revision=1 +archs="noarch" +wrksrc="coloredlogs-${version}" +build_style=python-module +hostmakedepends="python-setuptools python3-setuptools" +depends="python-humanfriendly" +short_desc="Colored terminal output for Python2 logging module" +maintainer="Nyx70 " +license="MIT" +homepage="https://coloredlogs.readthedocs.io" +distfiles="${PYPI_SITE}/c/coloredlogs/coloredlogs-${version}.tar.gz" +checksum=a1fab193d2053aa6c0a97608c4342d031f1f93a3d1218432c59322441d31a505 + +post_install() { + vlicense LICENSE.txt +} + +python3-coloredlogs_package() { + depends="python3-humanfriendly" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python-humanfriendly/template b/srcpkgs/python-humanfriendly/template new file mode 100644 index 00000000000..209725b2f22 --- /dev/null +++ b/srcpkgs/python-humanfriendly/template @@ -0,0 +1,26 @@ +# Template file for 'python-humanfriendly' +pkgname=python-humanfriendly +version=8.2 +revision=1 +archs="noarch" +wrksrc="humanfriendly-${version}" +build_style=python-module +hostmakedepends="python-setuptools python3-setuptools" +short_desc="Human friendly output for text interfaces using Python2" +maintainer="Nyx70 " +license="MIT" +homepage="https://humanfriendly.readthedocs.io" +distfiles="${PYPI_SITE}/h/humanfriendly/humanfriendly-${version}.tar.gz" +checksum=bf52ec91244819c780341a3438d5d7b09f431d3f113a475147ac9b7b167a3d12 + +post_install() { + vlicense LICENSE.txt +} + +python3-humanfriendly_package() { + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-coloredlogs b/srcpkgs/python3-coloredlogs new file mode 120000 index 00000000000..9a208eb1ec8 --- /dev/null +++ b/srcpkgs/python3-coloredlogs @@ -0,0 +1 @@ +python-coloredlogs \ No newline at end of file diff --git a/srcpkgs/python3-humanfriendly b/srcpkgs/python3-humanfriendly new file mode 120000 index 00000000000..b342d2a1daf --- /dev/null +++ b/srcpkgs/python3-humanfriendly @@ -0,0 +1 @@ +python-humanfriendly \ No newline at end of file