aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-09-24 18:41:40 +0000
committerAisha Tammy <gentoo@aisha.cc>2020-09-24 18:41:40 +0000
commit609da66bf7c8950365b55d192df18bcb38f1023e (patch)
treeb48a7bc6350a47406a96731db3a44387ddb81cdf /dev-python/hopcroftkarp
parentdev-python/colorlover: colorschemes from plotly (diff)
downloadsci-609da66bf7c8950365b55d192df18bcb38f1023e.tar.gz
sci-609da66bf7c8950365b55d192df18bcb38f1023e.tar.bz2
sci-609da66bf7c8950365b55d192df18bcb38f1023e.zip
dev-python/hopcroftkarp: max matching on bipartite graph
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'dev-python/hopcroftkarp')
-rw-r--r--dev-python/hopcroftkarp/Manifest1
-rw-r--r--dev-python/hopcroftkarp/files/hopcroftkarp-1.2.5_p1-setup_py.patch13
-rw-r--r--dev-python/hopcroftkarp/hopcroftkarp-1.2.5_p1.ebuild22
-rw-r--r--dev-python/hopcroftkarp/metadata.xml12
4 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/hopcroftkarp/Manifest b/dev-python/hopcroftkarp/Manifest
new file mode 100644
index 000000000..dbe9fb11b
--- /dev/null
+++ b/dev-python/hopcroftkarp/Manifest
@@ -0,0 +1 @@
+DIST hopcroftkarp-1.2.5_p1.tar.gz 25754 BLAKE2B 78401cb878d84abaaaef3f06e4764bf34b1711f332957493c4bf8b2c46082f293a48a70d06d9600f36fe949298860e10dce27cbe09b518e5d1b1f4225be1733f SHA512 f6b265273ed72f3927dd604c1279d8ce225ba88600faf83f052b875b1dc62ea733faac82d4665ba43d296bad089a122600b7dee968f3b4e001ed18803a22cabf
diff --git a/dev-python/hopcroftkarp/files/hopcroftkarp-1.2.5_p1-setup_py.patch b/dev-python/hopcroftkarp/files/hopcroftkarp-1.2.5_p1-setup_py.patch
new file mode 100644
index 000000000..b76b882e9
--- /dev/null
+++ b/dev-python/hopcroftkarp/files/hopcroftkarp-1.2.5_p1-setup_py.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 552ab4e..022b5d3 100644
+--- a/setup.py
++++ b/setup.py
+@@ -10,7 +10,7 @@ setup(
+ url='https://github.com/sofiat-olaosebikan/hopcroftkarp',
+ license = 'GPL',
+ keywords = 'hopcroftkarp algorithm, maximum cardinality matching, bipartite graphs',
+- packages=find_packages(),
++ packages=[ 'hopcroftkarp' ],
+ zip_safe=True,
+ package_dir={'hopcroftkarp': 'hopcroftkarp'},
+ test_suite='test',
diff --git a/dev-python/hopcroftkarp/hopcroftkarp-1.2.5_p1.ebuild b/dev-python/hopcroftkarp/hopcroftkarp-1.2.5_p1.ebuild
new file mode 100644
index 000000000..5077b4790
--- /dev/null
+++ b/dev-python/hopcroftkarp/hopcroftkarp-1.2.5_p1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="python frontend for the fast ripser tda tool"
+HOMEPAGE="https://ripser.scikit-tda.org/"
+COMMIT="2846e1dd3265d95d2bddb0cf4190b830cbb4efe6"
+SRC_URI="https://github.com/sofiatolaosebikan/hopcroftkarp/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${COMMIT}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/${P}-setup_py.patch )
+
+distutils_enable_tests pytest
diff --git a/dev-python/hopcroftkarp/metadata.xml b/dev-python/hopcroftkarp/metadata.xml
new file mode 100644
index 000000000..2f2c0b51c
--- /dev/null
+++ b/dev-python/hopcroftkarp/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@aisha.cc</email>
+ <name>Aisha Tammy</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>