[arch-commits] Commit in python-dict2xml/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 23:37:21 UTC 2021
Date: Thursday, December 2, 2021 @ 23:37:21
Author: felixonmars
Revision: 1063190
archrelease: copy trunk to community-staging-any
Added:
python-dict2xml/repos/community-staging-any/
python-dict2xml/repos/community-staging-any/PKGBUILD
(from rev 1063189, python-dict2xml/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-dict2xml/repos/community-staging-any/PKGBUILD (from rev 1063189, python-dict2xml/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:37:21 UTC (rev 1063190)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-dict2xml
+pkgver=1.7.0
+_commit=ea9282f263b6588d59ac6998bf2319002527bd13
+pkgrel=2
+pkgdesc="Small utility to convert a python dictionary into an XML string"
+arch=('any')
+url="https://github.com/delfick/python-dict2xml"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-noseofyeti')
+source=("https://github.com/delfick/python-dict2xml/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('1fc2a25c903adca106374ea9181b57da25f2166eed9cc45a3ebcc4e7d90a6f20f4fa9f541048f35ab93af36e6ba55786b989e058443f7a6cbaf9a3838a1f4d0a')
+
+build() {
+ cd python-dict2xml-$_commit
+ python setup.py build
+}
+
+check() {
+ cd python-dict2xml-$_commit
+ pytest
+}
+
+package() {
+ cd python-dict2xml-$_commit
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list