summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-01-08 20:04:27 +0000
committeradam <adam@pkgsrc.org>2020-01-08 20:04:27 +0000
commit222d6ee48431c066baea9cb05c42e1550b5ab10b (patch)
tree3a72ded7b195a4104e90be53cd6b2779540a013f /misc
parentd26f29696d13bdfb8b3e4fe56a2709d0cfafc024 (diff)
downloadpkgsrc-222d6ee48431c066baea9cb05c42e1550b5ab10b.tar.gz
py-sniffio: added version 1.1.0
You're writing a library. You've decided to be ambitious, and support multiple async I/O packages, like Trio, and asyncio, and... You've written a bunch of clever code to handle all the differences. But... how do you know which piece of clever code to run? This is a tiny package whose only purpose is to let you detect which async library your code is running under.
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile3
-rw-r--r--misc/py-sniffio/DESCR7
-rw-r--r--misc/py-sniffio/Makefile23
-rw-r--r--misc/py-sniffio/PLIST21
-rw-r--r--misc/py-sniffio/distinfo6
5 files changed, 59 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 680673970ee..df227d7419b 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.528 2020/01/08 20:01:40 adam Exp $
+# $NetBSD: Makefile,v 1.529 2020/01/08 20:04:27 adam Exp $
#
COMMENT= Miscellaneous utilities
@@ -247,6 +247,7 @@ SUBDIR+= py-ansi
SUBDIR+= py-asciinema
SUBDIR+= py-carddav
SUBDIR+= py-immutables
+SUBDIR+= py-sniffio
SUBDIR+= py-stdnum
SUBDIR+= py-tqdm
SUBDIR+= py-trytond-carrier
diff --git a/misc/py-sniffio/DESCR b/misc/py-sniffio/DESCR
new file mode 100644
index 00000000000..1a27ed822e7
--- /dev/null
+++ b/misc/py-sniffio/DESCR
@@ -0,0 +1,7 @@
+You're writing a library. You've decided to be ambitious, and support multiple
+async I/O packages, like Trio, and asyncio, and... You've written a bunch of
+clever code to handle all the differences. But... how do you know which piece of
+clever code to run?
+
+This is a tiny package whose only purpose is to let you detect which async
+library your code is running under.
diff --git a/misc/py-sniffio/Makefile b/misc/py-sniffio/Makefile
new file mode 100644
index 00000000000..f271b5ce65d
--- /dev/null
+++ b/misc/py-sniffio/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/01/08 20:04:27 adam Exp $
+
+DISTNAME= sniffio-1.1.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= misc python
+MASTER_SITES= ${MASTER_SITE_PYPI:=s/sniffio/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/python-trio/sniffio
+COMMENT= Sniff out which async library your code is running under
+LICENSE= mit
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 36
+DEPENDS+= ${PYPKGPREFIX}-contextvars>=2.1:../../devel/py-contextvars
+.endif
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/py-sniffio/PLIST b/misc/py-sniffio/PLIST
new file mode 100644
index 00000000000..d9c3d7b5227
--- /dev/null
+++ b/misc/py-sniffio/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/08 20:04:28 adam Exp $
+${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}/sniffio/__init__.py
+${PYSITELIB}/sniffio/__init__.pyc
+${PYSITELIB}/sniffio/__init__.pyo
+${PYSITELIB}/sniffio/_impl.py
+${PYSITELIB}/sniffio/_impl.pyc
+${PYSITELIB}/sniffio/_impl.pyo
+${PYSITELIB}/sniffio/_tests/__init__.py
+${PYSITELIB}/sniffio/_tests/__init__.pyc
+${PYSITELIB}/sniffio/_tests/__init__.pyo
+${PYSITELIB}/sniffio/_tests/test_sniffio.py
+${PYSITELIB}/sniffio/_tests/test_sniffio.pyc
+${PYSITELIB}/sniffio/_tests/test_sniffio.pyo
+${PYSITELIB}/sniffio/_version.py
+${PYSITELIB}/sniffio/_version.pyc
+${PYSITELIB}/sniffio/_version.pyo
diff --git a/misc/py-sniffio/distinfo b/misc/py-sniffio/distinfo
new file mode 100644
index 00000000000..dc290d17d90
--- /dev/null
+++ b/misc/py-sniffio/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/08 20:04:28 adam Exp $
+
+SHA1 (sniffio-1.1.0.tar.gz) = 32b1bf94b406a003e1e64058646380ee669a9341
+RMD160 (sniffio-1.1.0.tar.gz) = b7e4a4e9e6761ba5aabbe8839dae683e9c9abf92
+SHA512 (sniffio-1.1.0.tar.gz) = f315c79245ccec8e1e6e0f8ffe4cf42fdab7f5fe3e680ddc05c65732a6d26989ac1459135f13938380928b02802bc0a6b1174c83118a60b0ad15f59730927912
+Size (sniffio-1.1.0.tar.gz) = 15285 bytes