pkgsrc-WIP-changes archive

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

py-spectra: Color scales and color conversion made easy for Python



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Jul 20 07:28:02 2023 -0500
Changeset:	a3d44abbf75985eae8c8f36fc18b5324df01954d

Modified Files:
	Makefile
Added Files:
	py-spectra/DESCR
	py-spectra/Makefile
	py-spectra/PLIST
	py-spectra/distinfo

Log Message:
py-spectra: Color scales and color conversion made easy for Python

Spectra is a Python library that makes color math, color scales, and
color-space conversion easy.
Support for:
    Color scales
    Color ranges
    Color blending
    Brightening/darkening colors
    Saturating/desaturating colors
    Conversion to/from multiple color spaces
Spectra is built on colormath and grapefruit. Spectra is enormously inspired by
chroma.js and d3's scales.

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

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

diffstat:
 Makefile            |  1 +
 py-spectra/DESCR    | 11 +++++++++++
 py-spectra/Makefile | 24 ++++++++++++++++++++++++
 py-spectra/PLIST    | 20 ++++++++++++++++++++
 py-spectra/distinfo |  5 +++++
 5 files changed, 61 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ee559c6490..01108005a1 100644
--- a/Makefile
+++ b/Makefile
@@ -4605,6 +4605,7 @@ SUBDIR+=	py-spark
 SUBDIR+=	py-sparse
 SUBDIR+=	py-spatialdata
 SUBDIR+=	py-spatious
+SUBDIR+=	py-spectra
 SUBDIR+=	py-spectral
 SUBDIR+=	py-speex
 SUBDIR+=	py-speview
diff --git a/py-spectra/DESCR b/py-spectra/DESCR
new file mode 100644
index 0000000000..f57d29e537
--- /dev/null
+++ b/py-spectra/DESCR
@@ -0,0 +1,11 @@
+Spectra is a Python library that makes color math, color scales, and
+color-space conversion easy.
+Support for:
+    Color scales
+    Color ranges
+    Color blending
+    Brightening/darkening colors
+    Saturating/desaturating colors
+    Conversion to/from multiple color spaces
+Spectra is built on colormath and grapefruit. Spectra is enormously inspired by
+chroma.js and d3's scales.
diff --git a/py-spectra/Makefile b/py-spectra/Makefile
new file mode 100644
index 0000000000..c33cd21ea4
--- /dev/null
+++ b/py-spectra/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+#
+###########################################################
+#                  Generated by fbsd2pkg                  #
+#              Thu Jul 20 07:24:39 CDT 2023               #
+###########################################################
+
+DISTNAME=	spectra-0.0.11
+PKGNAME=	${PYPKGPREFIX}-spectra-0.0.11
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/spectra/}
+
+OWNER=		bacon%NetBSD.org@localhost
+HOMEPAGE=	https://pypi.python.org/pypi/spectra
+COMMENT=	Color scales and color conversion made easy for Python
+LICENSE=	mit
+
+TEST_DEPENDS=	${PYPKGPREFIX}-nose>0:../../devel/py-nose
+
+do-test:
+	cd ${WRKSRC} && ${PYTHONBIN} -m nose -v test
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-spectra/PLIST b/py-spectra/PLIST
new file mode 100644
index 0000000000..e78da730c1
--- /dev/null
+++ b/py-spectra/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/namespace_packages.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/spectra/__init__.py
+${PYSITELIB}/spectra/__init__.pyc
+${PYSITELIB}/spectra/__init__.pyo
+${PYSITELIB}/spectra/_version.py
+${PYSITELIB}/spectra/_version.pyc
+${PYSITELIB}/spectra/_version.pyo
+${PYSITELIB}/spectra/core.py
+${PYSITELIB}/spectra/core.pyc
+${PYSITELIB}/spectra/core.pyo
+${PYSITELIB}/spectra/grapefruit.py
+${PYSITELIB}/spectra/grapefruit.pyc
+${PYSITELIB}/spectra/grapefruit.pyo
diff --git a/py-spectra/distinfo b/py-spectra/distinfo
new file mode 100644
index 0000000000..911e37f29d
--- /dev/null
+++ b/py-spectra/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (spectra-0.0.11.tar.gz) = c91c559e3302f839837d76c72445a813bf45585fac342ff6a6bf32f94a6ac5ab
+SHA512 (spectra-0.0.11.tar.gz) = 7b4e244ba200df8c6d7cff19ddf36a5af6cfe8cf6f89283f8dbb64345a3eb85b4f62456e3c75b7c8ce2d24e01c8a123a5763605b1e702903fe16839966e47b32
+Size (spectra-0.0.11.tar.gz) = 18819 bytes


Home | Main Index | Thread Index | Old Index