Merge pull request #17375 from houqp/master

pythonPackpages.tensorflow: 0.8.0 -> 0.9.0

authored by Frederik Rietdijk and committed by GitHub 329589c7 f277185b

+67 -6
+43
pkgs/development/libraries/protobuf/3.0.0-beta-2.nix
···
··· 1 + { stdenv, fetchFromGitHub , autoreconfHook, zlib, gmock }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "protobuf-${version}"; 5 + 6 + version = "3.0.0-beta-2"; 7 + # make sure you test also -A pythonPackages.protobuf 8 + src = fetchFromGitHub { 9 + owner = "google"; 10 + repo = "protobuf"; 11 + rev = "v${version}"; 12 + sha256 = "0cbr1glgma5vakabsjwcs41pcnn8yphhn037l0zd121zb9gdaqc1"; 13 + }; 14 + 15 + postPatch = '' 16 + rm -rf gmock 17 + cp -r ${gmock.source} gmock 18 + chmod -R a+w gmock 19 + '' + stdenv.lib.optionalString stdenv.isDarwin '' 20 + substituteInPlace src/google/protobuf/testing/googletest.cc \ 21 + --replace 'tmpnam(b)' '"'$TMPDIR'/foo"' 22 + ''; 23 + 24 + buildInputs = [ autoreconfHook zlib ]; 25 + 26 + enableParallelBuilding = true; 27 + 28 + doCheck = true; 29 + 30 + meta = { 31 + description = "Google's data interchange format"; 32 + longDescription = 33 + ''Protocol Buffers are a way of encoding structured data in an efficient 34 + yet extensible format. Google uses Protocol Buffers for almost all of 35 + its internal RPC protocols and file formats. 36 + ''; 37 + license = stdenv.lib.licenses.bsd3; 38 + platforms = stdenv.lib.platforms.unix; 39 + homepage = https://developers.google.com/protocol-buffers/; 40 + }; 41 + 42 + passthru.version = version; 43 + }
-3
pkgs/development/libraries/protobuf/generic.nix
··· 25 26 meta = { 27 description = "Protocol Buffers - Google's data interchange format"; 28 - 29 longDescription = 30 '' Protocol Buffers are a way of encoding structured data in an 31 efficient yet extensible format. Google uses Protocol Buffers for 32 almost all of its internal RPC protocols and file formats. 33 ''; 34 - 35 license = "mBSD"; 36 - 37 homepage = https://developers.google.com/protocol-buffers/; 38 platforms = stdenv.lib.platforms.unix; 39 };
··· 25 26 meta = { 27 description = "Protocol Buffers - Google's data interchange format"; 28 longDescription = 29 '' Protocol Buffers are a way of encoding structured data in an 30 efficient yet extensible format. Google uses Protocol Buffers for 31 almost all of its internal RPC protocols and file formats. 32 ''; 33 license = "mBSD"; 34 homepage = https://developers.google.com/protocol-buffers/; 35 platforms = stdenv.lib.platforms.unix; 36 };
+2
pkgs/top-level/all-packages.nix
··· 9081 9082 protobuf = protobuf2_6; 9083 protobuf3_0 = lowPrio (callPackage ../development/libraries/protobuf/3.0.nix { }); 9084 protobuf2_6 = callPackage ../development/libraries/protobuf/2.6.nix { }; 9085 protobuf2_5 = callPackage ../development/libraries/protobuf/2.5.nix { }; 9086
··· 9081 9082 protobuf = protobuf2_6; 9083 protobuf3_0 = lowPrio (callPackage ../development/libraries/protobuf/3.0.nix { }); 9084 + # 3.0.0-beta-2 is only introduced for tensorflow. remove this version when tensorflow is moved to 3.0. 9085 + protobuf3_0_0b2 = lowPrio (callPackage ../development/libraries/protobuf/3.0.0-beta-2.nix { }); 9086 protobuf2_6 = callPackage ../development/libraries/protobuf/2.6.nix { }; 9087 protobuf2_5 = callPackage ../development/libraries/protobuf/2.5.nix { }; 9088
+22 -3
pkgs/top-level/python-packages.nix
··· 17754 17755 protobuf = self.protobuf2_6; 17756 protobuf3_0 = (self.protobufBuild pkgs.protobuf3_0).override { doCheck = false; }; 17757 protobuf2_6 = self.protobufBuild pkgs.protobuf2_6; 17758 protobuf2_5 = self.protobufBuild pkgs.protobuf2_5; 17759 protobufBuild = protobuf: buildPythonPackage rec { ··· 28848 28849 tensorflowNoGpuSupport = buildPythonPackage rec { 28850 name = "tensorflow"; 28851 - version = "0.8.0"; 28852 format = "wheel"; 28853 28854 src = pkgs.fetchurl { 28855 url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${version}-cp27-none-linux_x86_64.whl"; 28856 - sha256 = "07lb6rknngq9bicd7z1q9caiqxlqn4fdx8q24s3rqvv9wi79szws"; 28857 }; 28858 28859 - propagatedBuildInputs = with self; [ numpy six protobuf3_0 pkgs.swig ]; 28860 28861 preFixup = '' 28862 RPATH="${stdenv.lib.makeLibraryPath [ pkgs.gcc.cc.lib pkgs.zlib ]}" ··· 28869 description = "TensorFlow helps the tensors flow (no gpu support)"; 28870 homepage = http://tensorflow.org; 28871 license = licenses.asl20; 28872 }; 28873 }; 28874
··· 17754 17755 protobuf = self.protobuf2_6; 17756 protobuf3_0 = (self.protobufBuild pkgs.protobuf3_0).override { doCheck = false; }; 17757 + protobuf3_0_0b2 = (self.protobufBuild pkgs.protobuf3_0_0b2).override { doCheck = false; }; 17758 protobuf2_6 = self.protobufBuild pkgs.protobuf2_6; 17759 protobuf2_5 = self.protobufBuild pkgs.protobuf2_5; 17760 protobufBuild = protobuf: buildPythonPackage rec { ··· 28849 28850 tensorflowNoGpuSupport = buildPythonPackage rec { 28851 name = "tensorflow"; 28852 + version = "0.9.0"; 28853 format = "wheel"; 28854 28855 src = pkgs.fetchurl { 28856 url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${version}-cp27-none-linux_x86_64.whl"; 28857 + sha256 = "15v7iyry8bmp5wcc1rr4bkp80f3887rl99zqf8pys5bad4gldbkh"; 28858 }; 28859 28860 + propagatedBuildInputs = with self; [ numpy six protobuf3_0_0b2 pkgs.swig ]; 28861 28862 preFixup = '' 28863 RPATH="${stdenv.lib.makeLibraryPath [ pkgs.gcc.cc.lib pkgs.zlib ]}" ··· 28870 description = "TensorFlow helps the tensors flow (no gpu support)"; 28871 homepage = http://tensorflow.org; 28872 license = licenses.asl20; 28873 + }; 28874 + }; 28875 + 28876 + tflearn = buildPythonPackage rec { 28877 + name = "tflearn-0.2.1"; 28878 + 28879 + meta = { 28880 + description = "Deep learning library featuring a higher-level API for TensorFlow"; 28881 + homepage = "https://github.com/tflearn/tflearn"; 28882 + license = licenses.mit; 28883 + maintainers = with maintainers; [ houqp ]; 28884 + }; 28885 + 28886 + propagatedBuildInputs = with self; [ scipy h5py pillow tensorflow ]; 28887 + 28888 + src = pkgs.fetchurl { 28889 + url = "mirror://pypi/t/tflearn/${name}.tar.gz"; 28890 + sha256 = "1n884c4j35409id2bncyj5fvmmfpdqj3pk6wrv0s1znnvs0lkii0"; 28891 }; 28892 }; 28893