From fb910748f860e7a838296fb2875a8156a8683879 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sun, 16 Jul 2017 02:45:32 +0000
Subject: python-packaging: initial inclusion. dep of flexget

---
 abs/core/python_modules/python-packaging/PKGBUILD  | 49 ++++++++++++++++++++++
 .../python_modules/python-packaging/__changelog    |  2 +
 2 files changed, 51 insertions(+)
 create mode 100644 abs/core/python_modules/python-packaging/PKGBUILD
 create mode 100644 abs/core/python_modules/python-packaging/__changelog

diff --git a/abs/core/python_modules/python-packaging/PKGBUILD b/abs/core/python_modules/python-packaging/PKGBUILD
new file mode 100644
index 0000000..c7e2b7a
--- /dev/null
+++ b/abs/core/python_modules/python-packaging/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgbase=python-packaging
+pkgname=(python2-packaging)
+pkgver=16.8
+pkgrel=2
+pkgdesc="Core utilities for Python packages"
+arch=('any')
+url="https://github.com/pypa/packaging"
+license=('Apache')
+makedepends=('python2-setuptools' 'python2-pyparsing' 'git')
+checkdepends=('python2-pytest-runner' 'python2-pretend' 'python2-coverage')
+source=("git+https://github.com/pypa/packaging.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a packaging{,-py2}
+}
+
+build() {
+#  cd "$srcdir"/packaging
+#  python setup.py build
+
+  cd "$srcdir"/packaging-py2
+  python2 setup.py build
+}
+
+check() {
+#  cd "$srcdir"/packaging
+#  python setup.py ptr
+
+  cd "$srcdir"/packaging-py2
+  python2 setup.py ptr
+}
+
+package_python-packaging() {
+  depends=('python-pyparsing' 'python-six')
+
+  cd "$srcdir"/packaging
+  python setup.py install --root "$pkgdir"
+}
+
+package_python2-packaging() {
+  depends=('python2-pyparsing' 'python2-six')
+
+  cd "$srcdir"/packaging-py2
+  python2 setup.py install --root "$pkgdir"
+}
diff --git a/abs/core/python_modules/python-packaging/__changelog b/abs/core/python_modules/python-packaging/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-packaging/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+
-- 
cgit v0.12

