diff --git a/srcpkgs/python-scikit-learn/template b/srcpkgs/python-scikit-learn/template new file mode 100644 index 00000000000..04a8b4bb49b --- /dev/null +++ b/srcpkgs/python-scikit-learn/template @@ -0,0 +1,31 @@ +# Template file for 'python-scikit-learn' +pkgname=python-scikit-learn +version=0.19.1 +revision=1 +wrksrc="scikit-learn-${version}" +build_style=python-module +pycompile_module="sklearn" +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel python-scipy python3-scipy + python-Cython python3-Cython" +depends="python-scipy" +short_desc="Python2 modules for machine learning and data mining" +maintainer="Alessio Sergi " +homepage="http://scikit-learn.org/" +license="3-clause-BSD" +distfiles="https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz" +checksum=2947f531ad52e81b2436b26608d8198778ac0b4baa7d2925db8b3b3fcb39c8a2 + +post_install() { + vlicense COPYING LICENSE +} + +python3-scikit-learn_package() { + depends="python3-scipy" + pycompile_module="sklearn" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense COPYING LICENSE + } +} diff --git a/srcpkgs/python3-scikit-learn b/srcpkgs/python3-scikit-learn new file mode 120000 index 00000000000..b21d4d2c2b2 --- /dev/null +++ b/srcpkgs/python3-scikit-learn @@ -0,0 +1 @@ +python-scikit-learn \ No newline at end of file