pkgsrc-WIP-changes archive

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

py-fastcluster: Import 1.2.6



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sat Jul 30 13:21:34 2022 -0700
Changeset:	59fcf6e180db6ac126dac56682c9ac4470cf9776

Added Files:
	py-fastcluster/DESCR
	py-fastcluster/Makefile
	py-fastcluster/PLIST
	py-fastcluster/distinfo
	py-fastcluster/patches/patch-tests_test.py
	py-fastcluster/patches/patch-tests_vectortest.py

Log Message:
py-fastcluster: Import 1.2.6

This library provides Python functions for hierarchical clustering,
and is meant to replace  routines in scipy.cluster.hierarchy.

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

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

diffstat:
 py-fastcluster/DESCR                             |  2 ++
 py-fastcluster/Makefile                          | 25 ++++++++++++++++++++++++
 py-fastcluster/PLIST                             | 12 ++++++++++++
 py-fastcluster/distinfo                          |  7 +++++++
 py-fastcluster/patches/patch-tests_test.py       | 12 ++++++++++++
 py-fastcluster/patches/patch-tests_vectortest.py | 12 ++++++++++++
 6 files changed, 70 insertions(+)

diffs:
diff --git a/py-fastcluster/DESCR b/py-fastcluster/DESCR
new file mode 100644
index 0000000000..ce0df5faef
--- /dev/null
+++ b/py-fastcluster/DESCR
@@ -0,0 +1,2 @@
+This library provides Python functions for hierarchical clustering.
+It generates hierarchical clusters from distance matrices or from vector data.
diff --git a/py-fastcluster/Makefile b/py-fastcluster/Makefile
new file mode 100644
index 0000000000..a4d85d7623
--- /dev/null
+++ b/py-fastcluster/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=	fastcluster-1.2.6
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	math
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fastcluster/}
+
+MAINTAINER=	matthewd%fastmail.us@localhost
+HOMEPAGE=	http://danifold.net/fastcluster.html
+COMMENT=	Fast hierarchical clustering routines for R and Python
+LICENSE=	2-clause-bsd
+
+USE_LANGUAGES=	c c++
+
+TEST_DEPENDS+=	${PYPKGPREFIX}-scipy>=1.6:../../math/py-scipy
+# Tests Requires installing the package
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} tests/test.py
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} tests/vectortest.py
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} tests/nantest.py
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-fastcluster/PLIST b/py-fastcluster/PLIST
new file mode 100644
index 0000000000..aeb15506e9
--- /dev/null
+++ b/py-fastcluster/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+${PYSITELIB}/_fastcluster.so
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING.txt
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/fastcluster.py
+${PYSITELIB}/fastcluster.pyc
diff --git a/py-fastcluster/distinfo b/py-fastcluster/distinfo
new file mode 100644
index 0000000000..6fbbf2b865
--- /dev/null
+++ b/py-fastcluster/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (fastcluster-1.2.6.tar.gz) = 150ac6c9e3e5e4886afea99250c707b08220822c7a3ad75a3a5123ed3286c7bb
+SHA512 (fastcluster-1.2.6.tar.gz) = 94a11ddd80fe219a91f1713230decfde761cd745a6ce0782e5cc0ab7d9818855d031be8c79f97256f0266fd6992a9fa4b0f5e7a30cb42387810fd8baff2a2135
+Size (fastcluster-1.2.6.tar.gz) = 173773 bytes
+SHA1 (patch-tests_test.py) = e46484e3c35b1e3d31828fd58db27fa995fa19ea
+SHA1 (patch-tests_vectortest.py) = 6f90acef713f1f9300cef22f26b22eb7b2fcbbc6
diff --git a/py-fastcluster/patches/patch-tests_test.py b/py-fastcluster/patches/patch-tests_test.py
new file mode 100644
index 0000000000..41ce8c5e56
--- /dev/null
+++ b/py-fastcluster/patches/patch-tests_test.py
@@ -0,0 +1,12 @@
+$NetBSD$
+
+Alter test to not run forever
+
+--- tests/test.py.orig	2022-02-27 10:25:41.000000000 +0000
++++ tests/test.py
+@@ -159,4 +159,4 @@ message.
+         test_all(D)
+
+ if __name__ == "__main__":
+-    test(None)
++    test(10)
diff --git a/py-fastcluster/patches/patch-tests_vectortest.py b/py-fastcluster/patches/patch-tests_vectortest.py
new file mode 100644
index 0000000000..4c726e5f76
--- /dev/null
+++ b/py-fastcluster/patches/patch-tests_vectortest.py
@@ -0,0 +1,12 @@
+$NetBSD$
+
+Alter test to not run forever
+
+--- tests/vectortest.py.orig	2022-07-30 20:39:36.187004151 +0000
++++ tests/vectortest.py
+@@ -236,4 +236,4 @@ message.
+         test_all(n,dim)
+
+ if __name__ == "__main__":
+-    test(None)
++    test(10)


Home | Main Index | Thread Index | Old Index