pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-msal-extensions: new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu Sep 15 23:53:14 2022 +0200
Changeset:	0d126455cd2b19765a1754740956a6ad90faac3e

Added Files:
	py-msal-extensions/DESCR
	py-msal-extensions/Makefile
	py-msal-extensions/PLIST
	py-msal-extensions/distinfo
	py-msal-extensions/patches/patch-msal__extensions_persistence.py

Log Message:
py-msal-extensions: new package

The Microsoft Authentication Extensions for Python offers secure
mechanisms for client applications to perform cross-platform token
cache serialization and persistence. It gives additional support
to the Microsoft Authentication Library for Python (MSAL).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0d126455cd2b19765a1754740956a6ad90faac3e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-msal-extensions/DESCR                           |  4 ++++
 py-msal-extensions/Makefile                        | 23 ++++++++++++++++++
 py-msal-extensions/PLIST                           | 27 ++++++++++++++++++++++
 py-msal-extensions/distinfo                        |  6 +++++
 .../patches/patch-msal__extensions_persistence.py  | 15 ++++++++++++
 5 files changed, 75 insertions(+)

diffs:
diff --git a/py-msal-extensions/DESCR b/py-msal-extensions/DESCR
new file mode 100644
index 0000000000..6f1476d89a
--- /dev/null
+++ b/py-msal-extensions/DESCR
@@ -0,0 +1,4 @@
+The Microsoft Authentication Extensions for Python offers secure
+mechanisms for client applications to perform cross-platform token
+cache serialization and persistence. It gives additional support
+to the Microsoft Authentication Library for Python (MSAL).
diff --git a/py-msal-extensions/Makefile b/py-msal-extensions/Makefile
new file mode 100644
index 0000000000..bac56203d9
--- /dev/null
+++ b/py-msal-extensions/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	msal-extensions-1.0.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	security net python
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/msal-extensions/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://pypi.org/project/msal-extensions/
+COMMENT=	Persistence API that can save your data on disk
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-msal>=0.4.1:../../wip/py-msal
+DEPENDS+=	${PYPKGPREFIX}-gobject3>=0:../../devel/py-gobject3
+DEPENDS+=	${PYPKGPREFIX}-portalocker>=1.0:../../wip/py-portalocker
+# tests fail
+TEST_DEPENDS+=	${PYPKGPREFIX}-test>=0:../../devel/py-test
+
+USE_LANGUAGES=	# none
+
+.include "../../lang/python/egg.mk"
+.include "../../security/libsecret/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-msal-extensions/PLIST b/py-msal-extensions/PLIST
new file mode 100644
index 0000000000..197c48d808
--- /dev/null
+++ b/py-msal-extensions/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/msal_extensions/__init__.py
+${PYSITELIB}/msal_extensions/__init__.pyc
+${PYSITELIB}/msal_extensions/__init__.pyo
+${PYSITELIB}/msal_extensions/cache_lock.py
+${PYSITELIB}/msal_extensions/cache_lock.pyc
+${PYSITELIB}/msal_extensions/cache_lock.pyo
+${PYSITELIB}/msal_extensions/libsecret.py
+${PYSITELIB}/msal_extensions/libsecret.pyc
+${PYSITELIB}/msal_extensions/libsecret.pyo
+${PYSITELIB}/msal_extensions/osx.py
+${PYSITELIB}/msal_extensions/osx.pyc
+${PYSITELIB}/msal_extensions/osx.pyo
+${PYSITELIB}/msal_extensions/persistence.py
+${PYSITELIB}/msal_extensions/persistence.pyc
+${PYSITELIB}/msal_extensions/persistence.pyo
+${PYSITELIB}/msal_extensions/token_cache.py
+${PYSITELIB}/msal_extensions/token_cache.pyc
+${PYSITELIB}/msal_extensions/token_cache.pyo
+${PYSITELIB}/msal_extensions/windows.py
+${PYSITELIB}/msal_extensions/windows.pyc
+${PYSITELIB}/msal_extensions/windows.pyo
diff --git a/py-msal-extensions/distinfo b/py-msal-extensions/distinfo
new file mode 100644
index 0000000000..b1fc83050b
--- /dev/null
+++ b/py-msal-extensions/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (msal-extensions-1.0.0.tar.gz) = 4fea3b20b78efdcd0a8fdecf4e98d8563cc8423326966da78661ee44e909e16b
+SHA512 (msal-extensions-1.0.0.tar.gz) = 5dc22a64a535ac9c7488d0d1e85e2f8320cb5c9e4cb5891599c8fc07060ff1eac310fe93ef42416142600ade8666ac4f0a3614a3e81950311f6d752cac5de959
+Size (msal-extensions-1.0.0.tar.gz) = 18763 bytes
+SHA1 (patch-msal__extensions_persistence.py) = 9e4a9d814f82d59dded74cf416d55d13e77872e9
diff --git a/py-msal-extensions/patches/patch-msal__extensions_persistence.py b/py-msal-extensions/patches/patch-msal__extensions_persistence.py
new file mode 100644
index 0000000000..3f986c69dd
--- /dev/null
+++ b/py-msal-extensions/patches/patch-msal__extensions_persistence.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Handle everything but Windows and macOS like Linux.
+
+--- msal_extensions/persistence.py.orig	2022-02-14 23:45:30.000000000 +0000
++++ msal_extensions/persistence.py
+@@ -94,7 +94,7 @@ def build_encrypted_persistence(location
+         return FilePersistenceWithDataProtection(location)
+     if sys.platform.startswith('darwin'):
+         return KeychainPersistence(location)
+-    if sys.platform.startswith('linux'):
++    else:
+         return LibsecretPersistence(location)
+     raise RuntimeError("Unsupported platform: {}".format(sys.platform))  # pylint: disable=consider-using-f-string
+ 


Home | Main Index | Thread Index | Old Index