python3Packages.tensorboardx: 2.5 -> 2.5.1

Unpins protobuf; the wanted version is a lower bound, not an upper
one, which is instead given inside setup.py.

https://github.com/lanpa/tensorboardX/blob/v2.5.1/setup.py#L46

+9 -7
+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";