anchor.diff:      wget
     ];
   
  -  # tests are not packaged in the released tarball
  -  doCheck = false;
  -
     pythonImportsCheck = [
       "runway"
  +  ];
  +
  +  checkInputs = [
  +    deepdiff
  +    pytestCheckHook
  +    pytestcov
  +    websocket_client
  +  ];
  +
  +  disabledTests = [
  +    # these tests require network
  +    "test_file_deserialization_remote"
  +    "test_file_deserialization_absolute_directory"
  +    "test_file_deserialization_remote_directory"
  +  ] ++ lib.optionals (pythonAtLeast "3.9") [
  +     # AttributeError: module 'base64' has no attribute 'decodestring
  +     # https://github.com/runwayml/model-sdk/issues/99
  +     "test_image_serialize_and_deserialize"
  +     "test_segmentation_serialize_and_deserialize_colormap"
  +     "test_segmentation_serialize_and_deserialize_labelmap"
     ];
   
     meta = {
  
positive.code: { lib
  , buildPythonPackage
  , fetchPypi
  , flask
  , flask-compress
  , flask-cors
  , flask-sockets
  , imageio
  , numpy
  , scipy
  , pillow
  , gevent
  , wget
  , six
  , colorcet
  , unidecode
  , urllib3
  }:
  
  buildPythonPackage rec {
    pname = "runway-python";
    version = "0.6.1";
  
    src = fetchPypi {
      inherit pname version;
      sha256 = "66cf1517dd817bf6db3792608920274f964dd0ced8dabecd925b8bc17aa95740";
    };
  
    propagatedBuildInputs = [
      colorcet
      flask
      flask-compress
      flask-cors
  
negative.code:     imageio
      numpy
      pillow
      pyopenssl
      scipy
      six
      unidecode
  