diff --git a/srcpkgs/python-networkx/template b/srcpkgs/python-networkx/template new file mode 100644 index 0000000000..5def6dd0e8 --- /dev/null +++ b/srcpkgs/python-networkx/template @@ -0,0 +1,31 @@ +# Template file for 'python-networkx' +pkgname=python-networkx +version=2.0 +revision=1 +noarch=yes +build_style=python-module +pycompile_module="networkx" +wrksrc="${pycompile_module}-${version}" +hostmakedepends="python-setuptools python3-setuptools unzip" +depends="python-decorator" +short_desc="Python2 package for creating, manipulating, and studying complex networks" +maintainer="Peter Bui " +homepage="http://networkx.github.io" +license="BSD" +distfiles="${PYPI_SITE}/n/${pycompile_module}/${pycompile_module}-${version}.zip" +checksum=cd5ff8f75d92c79237f067e2f0876824645d37f017cfffa5b7c9678cae1454aa + +post_install() { + vlicense LICENSE.txt +} + +python3-networkx_package() { + noarch=yes + pycompile_module="networkx" + depends="python3-decorator" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-networkx b/srcpkgs/python3-networkx new file mode 120000 index 0000000000..24fe35839b --- /dev/null +++ b/srcpkgs/python3-networkx @@ -0,0 +1 @@ +python-networkx \ No newline at end of file