summaryrefslogtreecommitdiff
path: root/graphics/py-blurhash
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-03-05 20:36:44 +0000
committernia <nia@pkgsrc.org>2020-03-05 20:36:44 +0000
commite30a918475008bcbdc0fb8f14edee99e9b38909c (patch)
tree098d0f8b76b7a768129aeee2751261fc11ac78b6 /graphics/py-blurhash
parent1927c8c7e9b6e37a1c60851375bb895632d55c16 (diff)
downloadpkgsrc-e30a918475008bcbdc0fb8f14edee99e9b38909c.tar.gz
graphics: Add py-blurhash
Pure-Python implementation of the blurhash algorithm. BlurHash is a compact representation of a placeholder for an image.
Diffstat (limited to 'graphics/py-blurhash')
-rw-r--r--graphics/py-blurhash/DESCR2
-rw-r--r--graphics/py-blurhash/Makefile20
-rw-r--r--graphics/py-blurhash/PLIST12
-rw-r--r--graphics/py-blurhash/distinfo6
4 files changed, 40 insertions, 0 deletions
diff --git a/graphics/py-blurhash/DESCR b/graphics/py-blurhash/DESCR
new file mode 100644
index 00000000000..562e83ccdf5
--- /dev/null
+++ b/graphics/py-blurhash/DESCR
@@ -0,0 +1,2 @@
+Pure-Python implementation of the blurhash algorithm. BlurHash is a compact
+representation of a placeholder for an image.
diff --git a/graphics/py-blurhash/Makefile b/graphics/py-blurhash/Makefile
new file mode 100644
index 00000000000..c79fb6b393f
--- /dev/null
+++ b/graphics/py-blurhash/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2020/03/05 20:36:44 nia Exp $
+
+DISTNAME= blurhash-1.1.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_PYPI:=b/blurhash/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/halcy/blurhash-python
+COMMENT= Implementation of the blurhash algorithm in pure python
+LICENSE= mit
+
+USE_LANGUAGES= # none
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+TEST_DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-blurhash/PLIST b/graphics/py-blurhash/PLIST
new file mode 100644
index 00000000000..984279b56f1
--- /dev/null
+++ b/graphics/py-blurhash/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/05 20:36:44 nia 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}/blurhash/__init__.py
+${PYSITELIB}/blurhash/__init__.pyo
+${PYSITELIB}/blurhash/__init__.pyc
+${PYSITELIB}/blurhash/blurhash.pyo
+${PYSITELIB}/blurhash/blurhash.pyc
+${PYSITELIB}/blurhash/blurhash.py
diff --git a/graphics/py-blurhash/distinfo b/graphics/py-blurhash/distinfo
new file mode 100644
index 00000000000..b09a5a28383
--- /dev/null
+++ b/graphics/py-blurhash/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/05 20:36:44 nia Exp $
+
+SHA1 (blurhash-1.1.4.tar.gz) = 46206172af27f670ee22f5340b27dcc1d0d93076
+RMD160 (blurhash-1.1.4.tar.gz) = 86b25009f4aaba52c43a7f0b97adf50b134fb55a
+SHA512 (blurhash-1.1.4.tar.gz) = eacef78927a1299bec19f73709435b1be55797273888e7856bbfd46d2aa1afa02f54505c15b76dcd6bd15a6817da0171aa412570c33c7ad487bfe10940ef3fd6
+Size (blurhash-1.1.4.tar.gz) = 4738 bytes