From 5a2563c059309c0600404ce69f06a235fb717e4f Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 11 Apr 2016 15:00:09 -0400 Subject: [PATCH 1/2] theano: init at 0.8.1 --- pkgs/top-level/python-packages.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c14372ea99b..d10a64c588d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20085,6 +20085,36 @@ in modules // { }; }; + Theano = buildPythonPackage rec { + name = "Theano-0.8.1"; + + disabled = isPyPy || pythonOlder "2.6" || (isPy3k && pythonOlder "3.3"); + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/T/Theano/${name}.tar.gz"; + sha256 = "17dikk94r8bzkxg976srqlhj5c7phs9gl837iabyfdpixkbrl79g"; + }; + + #preCheck = '' + # mkdir -p check-phase + # export HOME=$(pwd)/check-phase + #''; + doCheck = false; + # takes far too long, also throws "TypeError: sort() missing 1 required positional argument: 'a'" + # when run from the installer, and testing with Python 3.5 hits github.com/Theano/Theano/issues/4276, + # the fix for which hasn't been merged yet. + + # keep Nose around since running the tests by hand is possible from Python or bash + propagatedBuildInputs = [ stdenv pkgs.blas ] ++ (with self; [ nose numpy pydot_ng scipy six ]); + + meta = { + homepage = http://deeplearning.net/software/theano/; + description = "A Python library for large-scale array computation"; + license = stdenv.lib.licenses.bsd3; + maintainers = [ maintainers.bcdarwin ]; + }; + }; + tidylib = buildPythonPackage rec { version = "0.2.4"; name = "pytidylib-${version}"; From a4ad51f0c1e676975b87d28e3dfc50be319c72b5 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 25 Apr 2016 12:33:31 -0400 Subject: [PATCH 2/2] switch from pkgs.blas to numpy.blas --- pkgs/top-level/python-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d10a64c588d..3bc71adfb6c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20105,7 +20105,7 @@ in modules // { # the fix for which hasn't been merged yet. # keep Nose around since running the tests by hand is possible from Python or bash - propagatedBuildInputs = [ stdenv pkgs.blas ] ++ (with self; [ nose numpy pydot_ng scipy six ]); + propagatedBuildInputs = [ stdenv ] ++ (with self; [ nose numpy numpy.blas pydot_ng scipy six ]); meta = { homepage = http://deeplearning.net/software/theano/;