[arch-commits] Commit in python-adal/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:49:09 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:49:08
  Author: foutrelis
Revision: 1059349

archrelease: copy trunk to community-staging-any

Added:
  python-adal/repos/community-staging-any/
  python-adal/repos/community-staging-any/PKGBUILD
    (from rev 1059348, python-adal/trunk/PKGBUILD)
  python-adal/repos/community-staging-any/fix-broken-mex-test.patch
    (from rev 1059348, python-adal/trunk/fix-broken-mex-test.patch)

---------------------------+
 PKGBUILD                  |   40 ++++++++++++++++++++++++++++++++++++++++
 fix-broken-mex-test.patch |   11 +++++++++++
 2 files changed, 51 insertions(+)

Copied: python-adal/repos/community-staging-any/PKGBUILD (from rev 1059348, python-adal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:49:08 UTC (rev 1059349)
@@ -0,0 +1,40 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Lukas Zimmermann <luk.zim91 at gmail dot com> 
+# Contributor: Kelsey Maes <kelseymaes at outlook dot com>
+
+pkgname=python-adal
+_pkgbase='azure-activedirectory-library-for-python'
+pkgver=1.2.7
+pkgrel=2
+pkgdesc='ADAL for Python'
+arch=('any')
+url="https://github.com/AzureAD/${_pkgbase}"
+license=('MIT')
+depends=('python-cryptography' 'python-dateutil' 'python-pyjwt' 'python-requests')
+makedepends=('fakeroot' 'python-setuptools')
+checkdepends=('python-httpretty')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/AzureAD/${_pkgbase}/archive/${pkgver}.tar.gz"
+        'fix-broken-mex-test.patch')
+sha256sums=('26ccdb8981bb804ba4e64fa26693ae647642b6a54335ce2440edc6681119d563'
+            '29a9354028a9420ba883cb494688a0ecbf238d8e46fc011c4a309515a1444faa')
+
+prepare() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  patch -p1 -N -i "${srcdir}/fix-broken-mex-test.patch"
+}
+
+build() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python -m unittest discover -s tests
+}
+
+package() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-adal/repos/community-staging-any/fix-broken-mex-test.patch (from rev 1059348, python-adal/trunk/fix-broken-mex-test.patch)
===================================================================
--- community-staging-any/fix-broken-mex-test.patch	                        (rev 0)
+++ community-staging-any/fix-broken-mex-test.patch	2021-12-01 14:49:08 UTC (rev 1059349)
@@ -0,0 +1,11 @@
+--- a/tests/test_mex.py	2019-07-04 01:01:44.000000000 +0200
++++ b/tests/test_mex.py	2020-01-08 14:03:06.696115227 +0100
+@@ -52,7 +52,7 @@ class Test_Mex(unittest.TestCase):
+             mex.discover()
+             self.fail('No exception was thrown caused by failed request')
+         except Exception as exp:
+-            self.assertEqual(exp.args[0], 'Mex Get request returned http error: 500 and server response: HTTPretty :)')
++            self.assertEqual(exp.args[0], 'Mex Get request returned http error: 500 and server response: {"message": "HTTPretty :)"}')
+ 
+     @httpretty.activate
+     def _happyPathTest(self, file_name, expectedUrl):



More information about the arch-commits mailing list