diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-02 21:37:02 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:34:01 -0500 |
commit | 5ad1be79c4ff41f2337a2e44c65729b4b95130c5 (patch) | |
tree | 53655b0793eb2b5f5aa70c81a80e001e35e6a70f /user/py3-smartypants | |
parent | 57b3454125ff268fb900c0d60b267535857bcd93 (diff) | |
download | packages-5ad1be79c4ff41f2337a2e44c65729b4b95130c5.tar.gz packages-5ad1be79c4ff41f2337a2e44c65729b4b95130c5.tar.bz2 packages-5ad1be79c4ff41f2337a2e44c65729b4b95130c5.tar.xz packages-5ad1be79c4ff41f2337a2e44c65729b4b95130c5.zip |
user/py3-smartypants: New package
Diffstat (limited to 'user/py3-smartypants')
-rw-r--r-- | user/py3-smartypants/APKBUILD | 35 | ||||
-rw-r--r-- | user/py3-smartypants/hashbang.patch | 8 |
2 files changed, 43 insertions, 0 deletions
diff --git a/user/py3-smartypants/APKBUILD b/user/py3-smartypants/APKBUILD new file mode 100644 index 000000000..b6943bb9a --- /dev/null +++ b/user/py3-smartypants/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=py3-smartypants +_pkgname=smartypants.py +_p="${_pkgname#?}" +_p="${_pkgname%"$_p"}" +pkgver=2.0.1 +pkgrel=0 +pkgdesc="Python module for translating ASCII punctuation into HTML entities" +url="https://pypi.org/project/smartypants/" +arch="noarch" +license="BSD-3-Clause AND BSD-2-Clause" +depends="python3" +checkdepends="py3-docutils py3-pygments" +makedepends="" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/leohemsted/smartypants.py/archive/refs/tags/v$pkgver.tar.gz + hashbang.patch + " +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + PYTHONPATH=. python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d py3-smartypants-2.0.1.tar.gz +9e0ee42854b7ed0eeed8f0ac6969a93f7aec593bad416ca4f11f1d8a85bcc9ae9907fab98274720ddc7f927ea9a2ab9f4267afba04498670746ca41a4c316d15 hashbang.patch" diff --git a/user/py3-smartypants/hashbang.patch b/user/py3-smartypants/hashbang.patch new file mode 100644 index 000000000..420f37f3c --- /dev/null +++ b/user/py3-smartypants/hashbang.patch @@ -0,0 +1,8 @@ +--- smartypants.py-2.0.1/smartypants.old 2017-12-20 08:34:50.000000000 -0600 ++++ smartypants.py-2.0.1/smartypants 2022-07-02 21:33:28.758176655 -0500 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # Copyright (c) 2017 Leo Hemsted + # Licensed under the BSD License, for detailed license information, see COPYING + |