19 buildPythonPackage rec {
20 pname = "tensorboardx";
22 format = "setuptools";
24 src = fetchFromGitHub {
26 repo = "tensorboardX";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-m7RLDOMuRNLacnIudptBGjhcTlMk8+v/onz6Amqxb90=";
36 # required to make tests deterministic
37 env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
39 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
41 propagatedBuildInputs = [
46 pythonImportsCheck = [ "tensorboardX" ];
60 # ImportError: Visdom visualization requires installation of Visdom
62 # Requires network access (FileNotFoundError: [Errno 2] No such file or directory: 'wget')
64 ] ++ lib.optionals stdenv.isDarwin [
65 # Fails with a mysterious error in pytorch:
66 # RuntimeError: required keyword attribute 'name' has the wrong type
71 # we are not interested in linting errors
76 description = "Library for writing tensorboard-compatible logs";
77 homepage = "https://tensorboardx.readthedocs.io";
78 downloadPage = "https://github.com/lanpa/tensorboardX";
79 changelog = "https://github.com/lanpa/tensorboardX/blob/${src.rev}/HISTORY.rst";
80 license = licenses.mit;
81 maintainers = with maintainers; [ lebastr akamaus ];
82 platforms = platforms.all;