anchor.diff:  , tensorboardx
   , tensorflow
   , toolz
  +, torch
   , treex
   , typing-extensions
   }:
  
positive.code:     poetry
    ];
  
    buildInputs = [ jaxlib ];
  
    propagatedBuildInputs = [
      cloudpickle
  
negative.code: 
    # The cloudpickle constraint is too strict. wandb is marked as an optional
    # dependency but `buildPythonPackage` doesn't seem to respect that setting.
    # Python constraint: https://github.com/poets-ai/elegy/issues/244
    postPatch = ''
      substituteInPlace pyproject.toml \
        --replace 'python = ">=3.7,<3.10"' 'python = ">=3.7"' \
        --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \
        --replace 'wandb = { version = "^0.12.10", optional = true }' ""
    '';
  