1{ lib, buildPythonPackage, fetchFromGitHub 2, alembic, boto, cornice, hawkauthlib, mozsvc, paste, pybrowserid, pyfxa 3, pymysql, pymysqlsa, sqlalchemy, testfixtures, tokenlib, umemcache 4, mock, nose, unittest2, webtest 5}: 6 7buildPythonPackage rec { 8 pname = "tokenserver"; 9 version = "1.3.1"; 10 11 src = fetchFromGitHub { 12 owner = "mozilla-services"; 13 repo = pname; 14 rev = version; 15 sha256 = "04z0r8xzrmhvh04y8ggdz9gs8qa8lv3qr7kasf6lm63fixsfgrlp"; 16 }; 17 18 propagatedBuildInputs = [ 19 alembic boto cornice hawkauthlib mozsvc paste pybrowserid pyfxa 20 pymysql pymysqlsa sqlalchemy testfixtures tokenlib umemcache 21 ]; 22 23 checkInputs = [ 24 mock nose unittest2 webtest 25 ]; 26 27 # Requires virtualenv, MySQL, ... 28 doCheck = false; 29 30 meta = with lib; { 31 description = "The Mozilla Token Server"; 32 homepage = "https://github.com/mozilla-services/tokenserver"; 33 license = licenses.mpl20; 34 maintainers = with maintainers; [ nadrieril ]; 35 }; 36}