mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
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
This commit is contained in:
parent
5f53dac66a
commit
a222ca468e
1 changed files with 9 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
||||||
, moto
|
, moto
|
||||||
, numpy
|
, numpy
|
||||||
, pillow
|
, pillow
|
||||||
, protobuf3_8
|
, protobuf
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, torch
|
, torch
|
||||||
, six
|
, six
|
||||||
|
@ -19,13 +19,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tensorboardx";
|
pname = "tensorboardx";
|
||||||
version = "2.5";
|
version = "2.5.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lanpa";
|
owner = "lanpa";
|
||||||
repo = "tensorboardX";
|
repo = "tensorboardX";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-g6x0yUpofeSNA4rKPidqOKC7/TrOICstcc98VnQcfDY=";
|
hash = "sha256-Np0Ibn51qL0ORwq1IY8lUle05MQDdb5XkI1uzGOKJno=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# apparently torch API changed a bit at 1.6
|
# apparently torch API changed a bit at 1.6
|
||||||
|
@ -39,9 +40,10 @@ buildPythonPackage rec {
|
||||||
sed -i -e "s/'protobuf[^']*'/'protobuf'/" setup.py
|
sed -i -e "s/'protobuf[^']*'/'protobuf'/" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Wanted protobuf version is mentioned here:
|
nativeBuildInputs = [
|
||||||
# https://github.com/lanpa/tensorboardX/blob/0d08112618a2bbda4c028a15a137fed3afe77401/compile.sh#L6
|
which
|
||||||
nativeBuildInputs = [ which protobuf3_8 ];
|
protobuf
|
||||||
|
];
|
||||||
|
|
||||||
# required to make tests deterministic
|
# required to make tests deterministic
|
||||||
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
|
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
|
||||||
|
|
Loading…
Reference in a new issue