Merge pull request #193416 from mweinelt/protobuffery

authored by

Martin Weinelt and committed by
GitHub
4539b695 18b770c0

+18 -12
+4
pkgs/development/python-modules/coqui-trainer/default.nix
··· 30 30 hash = "sha256-WBFsQuGnpqOiQW7VFfsk0t7qEBs1ScOChfQFpLmqTz4="; 31 31 }; 32 32 33 + postPatch = '' 34 + sed -i 's/^protobuf.*/protobuf/' requirements.txt 35 + ''; 36 + 33 37 propagatedBuildInputs = [ 34 38 coqpit 35 39 fsspec
+9 -7
pkgs/development/python-modules/tensorboardx/default.nix
··· 8 8 , moto 9 9 , numpy 10 10 , pillow 11 - , protobuf3_8 11 + , protobuf 12 12 , pytestCheckHook 13 13 , torch 14 14 , six ··· 19 19 20 20 buildPythonPackage rec { 21 21 pname = "tensorboardx"; 22 - version = "2.5"; 22 + version = "2.5.1"; 23 + format = "setuptools"; 23 24 24 25 src = fetchFromGitHub { 25 26 owner = "lanpa"; 26 27 repo = "tensorboardX"; 27 - rev = "refs/tags/${version}"; 28 - sha256 = "sha256-g6x0yUpofeSNA4rKPidqOKC7/TrOICstcc98VnQcfDY="; 28 + rev = "refs/tags/v${version}"; 29 + hash = "sha256-Np0Ibn51qL0ORwq1IY8lUle05MQDdb5XkI1uzGOKJno="; 29 30 }; 30 31 31 32 # apparently torch API changed a bit at 1.6 ··· 39 40 sed -i -e "s/'protobuf[^']*'/'protobuf'/" setup.py 40 41 ''; 41 42 42 - # Wanted protobuf version is mentioned here: 43 - # https://github.com/lanpa/tensorboardX/blob/0d08112618a2bbda4c028a15a137fed3afe77401/compile.sh#L6 44 - nativeBuildInputs = [ which protobuf3_8 ]; 43 + nativeBuildInputs = [ 44 + which 45 + protobuf 46 + ]; 45 47 46 48 # required to make tests deterministic 47 49 PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
+2 -2
pkgs/servers/rippled/default.nix
··· 1 1 { lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config 2 - , openssl, boost, grpc, abseil-cpp, protobuf3_8, libnsl }: 2 + , openssl, boost, grpc, abseil-cpp, protobuf, libnsl }: 3 3 4 4 let 5 5 sqlite3 = fetchurl rec { ··· 130 130 cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON"]; 131 131 132 132 nativeBuildInputs = [ pkg-config cmake git ]; 133 - buildInputs = [ openssl openssl.dev boostSharedStatic grpc abseil-cpp protobuf3_8 libnsl ]; 133 + buildInputs = [ openssl openssl.dev boostSharedStatic grpc abseil-cpp protobuf libnsl ]; 134 134 135 135 preConfigure = '' 136 136 export HOME=$PWD
+2 -2
pkgs/tools/inputmethods/ibus-engines/ibus-mozc/default.nix
··· 8 8 src = fetchFromGitHub { 9 9 owner = "google"; 10 10 repo = "mozc"; 11 - rev = "063c41f1d7c1a877f44c1f8caad6be1897350336"; 12 - sha256 = "sha256-sgsfJZALpPHFB5bXu4OkRssViRDaPcgLfEyGhbqvJbI="; 11 + rev = "refs/tags/${version}"; 12 + hash = "sha256-sgsfJZALpPHFB5bXu4OkRssViRDaPcgLfEyGhbqvJbI="; 13 13 fetchSubmodules = true; 14 14 }; 15 15
+1 -1
pkgs/top-level/all-packages.nix
··· 5340 5340 5341 5341 mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc { 5342 5342 stdenv = clangStdenv; 5343 - protobuf = pkgs.protobuf3_8.overrideDerivation (_: { stdenv = clangStdenv; }); 5343 + protobuf = pkgs.protobuf.overrideDerivation (_: { stdenv = clangStdenv; }); 5344 5344 }; 5345 5345 5346 5346 rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };