<commit_before>{ buildPythonPackage
, fetchgit
, testfixtures
, cornice
, mozsvc
, pybrowserid
, tokenlib
, pymysql
, umemcache
, hawkauthlib
, alembic
, pymysqlsa
, paste
, boto
}:

buildPythonPackage rec {
  pname = "tokenserver";
  version = "1.2.27";

  src = fetchgit {
    url = https://github.com/mozilla-services/tokenserver.git;
    rev = "refs/tags/${version}";
    sha256 = "0il3bgjld495g9gxvvrm56kpan5swaizzg216qz3zxmb6w9ly3fm";
  };

  doCheck = false;
  checkInputs = [ testfixtures ];
  propagatedBuildInputs = [ cornice mozsvc pybrowserid tokenlib
    pymysql umemcache hawkauthlib alembic pymysqlsa paste boto ];

}<commit_msg>python.pkgs.tokenserver: 1.2.27 -> 1.3.1<commit_after>{ lib, buildPythonPackage, fetchFromGitHub
, alembic, boto, cornice, hawkauthlib, mozsvc, paste, pybrowserid, pyfxa
, pymysql, pymysqlsa, sqlalchemy, testfixtures, tokenlib, umemcache
, mock, nose, unittest2, webtest
}:

buildPythonPackage rec {
  pname = "tokenserver";
  version = "1.3.1";

  src = fetchFromGitHub {
    owner = "mozilla-services";
    repo = pname;
    rev = version;
    sha256 = "04z0r8xzrmhvh04y8ggdz9gs8qa8lv3qr7kasf6lm63fixsfgrlp";
  };

  propagatedBuildInputs = [
    alembic boto cornice hawkauthlib mozsvc paste pybrowserid pyfxa
    pymysql pymysqlsa sqlalchemy testfixtures tokenlib umemcache
  ];

  checkInputs = [
    mock nose unittest2 webtest
  ];

  # Requires virtualenv, MySQL, ...
  doCheck = false;

  meta = with lib; {
    description = "The Mozilla Token Server";
    homepage = https://github.com/mozilla-services/tokenserver;
    license = licenses.mpl20;
  };
}
{'fraction_non_alphanumeric': 0.10516490354698195, 'fraction_numerical': 0.03422526446795271, 'mean_word_length': 4.056603773584905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '932693', 'n_tokens_mistral': 645, 'n_tokens_neox': 609, 'n_words': 122}