anchor.diff:  { lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, python
  -, unittest2, scripttest, pytz, mock
  -, testtools, pbr, tempita, decorator, sqlalchemy
  +, scripttest, pytz, pbr, tempita, decorator, sqlalchemy
   , six, sqlparse, testrepository
   }:
  +
   buildPythonPackage rec {
     pname = "sqlalchemy-migrate";
     version = "0.13.0";
  
positive.code:   };
  
    # See: https://review.openstack.org/#/c/608382/
    patches = [ (fetchpatch {
      url = "https://github.com/openstack/sqlalchemy-migrate/pull/18.patch";
      sha256 = "1qyfq2m7w7xqf0r9bc2x42qcra4r9k9l9g1jy5j0fvlb6bvvjj07";
    }) ];
  
    checkInputs = [ unittest2 scripttest pytz mock testtools testrepository ];
    propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];
  
    doCheck = !stdenv.isDarwin;
  
    prePatch = ''
      sed -i -e /tempest-lib/d \
             -e /testtools/d \
        test-requirements.txt
    '';
    checkPhase = ''
      export PATH=$PATH:$out/bin
      echo sqlite:///__tmp__ > test_db.cfg
  
negative.code:   '';
  
    meta = with lib; {
      homepage = "https://opendev.org/x/sqlalchemy-migrate";
      description = "Schema migration tools for SQLAlchemy";
      license = licenses.asl20;
      maintainers = teams.openstack.members ++ (with maintainers; [ makefu ]);
    };
  }
  