git.iko.soy/typeable/nixpkgs
on master help sign in
tensorflow support for Darwin

tensorflow 0.10.0 : Because of an upstream bug in tensorflow, only tensorflow > 0.10.0 is functional in Darwin system. Required python packages (mock 2.0.0 and funcsigs 1.0.2) are added Removing mock2_0_0 and funcsigs since now upstream supports them

commit633387c0e8ae274767b8beb98648dde84b412477 authorJi-Haeng Huh <jihaeng.huh@gmail.com> dateMon 24 Oct 2016, 14:55 (10 years ago) parent54f0572
1 file changed+11−6
pkgs/top-level/python-packages.nix+11−6
pkgs/top-level/python-packages.nix+11−6
@@ -1067,7 +1067,7 @@ in {
10671067 license = licenses.free;
10681068 };
10691069 } else null;
1070−
1070+
10711071 funcsigs = buildPythonPackage rec {
10721072 name = "funcsigs-1.0.2";
10731073
@@ -14337,7 +14337,7 @@ in {
1433714337 broken = true;
1433814338 };
1433914339 };
14340−
14340+
1434114341 mock = buildPythonPackage (rec {
1434214342 name = "mock-2.0.0";
1434314343
@@ -30386,15 +30386,19 @@ in {
3038630386
3038730387 tensorflowNoGpuSupport = buildPythonPackage rec {
3038830388 name = "tensorflow";
30389− version = "0.9.0";
30389+ version = "0.10.0";
3039030390 format = "wheel";
3039130391
3039230392 src = pkgs.fetchurl {
30393− url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${version}-cp27-none-linux_x86_64.whl";
30394− sha256 = "15v7iyry8bmp5wcc1rr4bkp80f3887rl99zqf8pys5bad4gldbkh";
30393+ url = if stdenv.isDarwin then
30394+ "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-${version}-py2-none-any.whl" else
30395+ "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${version}-cp27-none-linux_x86_64.whl";
30396+ sha256 = if stdenv.isDarwin then
30397+ "1gjybh3j3rn34bzhsxsfdbqgsr4jh50qyx2wqywvcb24fkvy40j9" else
30398+ "15v7iyry8bmp5wcc1rr4bkp80f3887rl99zqf8pys5bad4gldbkh";
3039530399 };
3039630400
30397− propagatedBuildInputs = with self; [ numpy six protobuf3_0_0b2 pkgs.swig ];
30401+ propagatedBuildInputs = with self; [ numpy six protobuf3_0_0b2 pkgs.swig mock];
3039830402
3039930403 preFixup = ''
3040030404 RPATH="${stdenv.lib.makeLibraryPath [ pkgs.gcc.cc.lib pkgs.zlib ]}"
@@ -30407,6 +30411,7 @@ in {
3040730411 description = "TensorFlow helps the tensors flow (no gpu support)";
3040830412 homepage = http://tensorflow.org;
3040930413 license = licenses.asl20;
30414+ platforms = with platforms; linux ++ darwin;
3041030415 };
3041130416 };
3041230417