anchor.diff:    ];
   
     propagatedBuildInputs = [
  -    asdf
       astropy
       astropy-helpers
  -    beautifulsoup4
  -    drms
  -    glymur
  -    h5netcdf
  -    matplotlib
       numpy
  -    pandas
       parfive
  -    python-dateutil
  -    scikitimage
  -    scipy
  -    sqlalchemy
  -    towncrier
  -    tqdm
  -    zeep
     ];
  +
  +  passthru.optional-dependencies = {
  +    asdf = [
  +      asdf
  +      # asdf-astropy
  +    ];
  +    database = [
  +      sqlalchemy
  +    ];
  +    image = [
  +      scikitimage
  +      scipy
  +    ];
  +    net = [
  +      beautifulsoup4
  +      drms
  +      python-dateutil
  +      tqdm
  +      zeep
  +    ];
  +    jpeg2000 = [
  +      glymur
  +      lxml
  +    ];
  +    timeseries = [
  +      # cdflib
  +      h5netcdf
  +      # h5py
  +      matplotlib
  +      pandas
  +    ];
  +  };
   
     checkInputs = [
       hypothesis
       pytest-astropy
       pytest-mock
       pytestCheckHook
  -  ];
  +  ] ++ passthru.optional-dependencies.asdf
  +    ++ passthru.optional-dependencies.database
  +    ++ passthru.optional-dependencies.image
  +    ++ passthru.optional-dependencies.net
  +    ++ passthru.optional-dependencies.timeseries;
  +
  +  postPatch = ''
  +    substituteInPlace setup.cfg \
  +      --replace " --dist no" ""
  +  '';
   
     # darwin has write permission issues
     doCheck = stdenv.isLinux;
  
positive.code:     "sunpy/visualization/animator/tests/test_mapsequenceanimator.py"
      "sunpy/visualization/animator/tests/test_wcs.py"
      "sunpy/visualization/colormaps/tests/test_cm.py"
      # requires cdflib package
      "sunpy/timeseries/tests/test_timeseries_factory.py"
      # distutils is deprecated
      "sunpy/io/setup_package.py"
    ];
  
negative.code:     "test_sunpy_warnings_logging"
      "test_main_nonexisting_module"
      "test_main_stdlib_module"
      "test_find_dependencies"
    ];
  
    disabledTestPaths = [
      # Tests are very slow
      "sunpy/net/tests/test_fido.py"
      # asdf.extensions plugin issue
      "sunpy/io/special/asdf/resources/schemas/"
      "sunpy/io/special/asdf/resources/manifests/sunpy-1.0.0.yaml"
      # Requires mpl-animators package
      "sunpy/map/tests/test_compositemap.py"
      "sunpy/map/tests/test_mapbase.py"
      "sunpy/map/tests/test_mapsequence.py"
  