<commit_before>{ stdenv, buildPythonPackage, fetchurl, python,
  unittest2, scripttest, pytz, pylint, tempest-lib, mock, testtools,
  pbr, tempita, decorator, sqlalchemy, six, sqlparse 
}:
buildPythonPackage rec {
  pname = "sqlalchemy-migrate";
  name = "${pname}-${version}";
  version = "0.11.0";

  src = fetchurl {
    url = "mirror://pypi/s/sqlalchemy-migrate/${name}.tar.gz";
    sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6";
  };

  buildInputs = [ unittest2 scripttest pytz pylint tempest-lib mock testtools ];
  propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];

  checkPhase = ''
    export PATH=$PATH:$out/bin
    echo sqlite:///__tmp__ > test_db.cfg
    # depends on ibm_db_sa
    rm migrate/tests/changeset/databases/test_ibmdb2.py
    # wants very old testtools
    rm migrate/tests/versioning/test_schema.py
    # transient failures on py27
    substituteInPlace migrate/tests/versioning/test_util.py --replace "test_load_model" "noop"
    ${python.interpreter} setup.py test
  '';

  meta = with stdenv.lib; {
    homepage = http://code.google.com/p/sqlalchemy-migrate/;
    description = "Schema migration tools for SQLAlchemy";
    license = licenses.asl20;<commit_msg>python.pkgs.sqlalchemy-migrate: disable tests<commit_after>{ stdenv, buildPythonPackage, fetchurl, python,
  unittest2, scripttest, pytz, pylint, tempest-lib, mock, testtools,
  pbr, tempita, decorator, sqlalchemy, six, sqlparse 
}:
buildPythonPackage rec {
  pname = "sqlalchemy-migrate";
  name = "${pname}-${version}";
  version = "0.11.0";

  src = fetchurl {
    url = "mirror://pypi/s/sqlalchemy-migrate/${name}.tar.gz";
    sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6";
  };

  checkInputs = [ unittest2 scripttest pytz pylint  mock testtools ];
  propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];

  checkPhase = ''
    export PATH=$PATH:$out/bin
    echo sqlite:///__tmp__ > test_db.cfg
    # depends on ibm_db_sa
    rm migrate/tests/changeset/databases/test_ibmdb2.py
    # wants very old testtools
    rm migrate/tests/versioning/test_schema.py
    # transient failures on py27
    substituteInPlace migrate/tests/versioning/test_util.py --replace "test_load_model" "noop"
    ${python.interpreter} setup.py test
  '';

  # Tests require tempest-lib which requires the broken oslo-config
  doCheck = false;

  meta = with stdenv.lib; {
    homepage = http://code.google.com/p/sqlalchemy-migrate/;
    description = "Schema migration tools for SQLAlchemy";
    license = licenses.asl20;
{'fraction_non_alphanumeric': 0.11581811115429459, 'fraction_numerical': 0.022541780023319084, 'mean_word_length': 3.969111969111969, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3521433', 'n_tokens_mistral': 965, 'n_tokens_neox': 912, 'n_words': 188}