2018-08-07 09:43:07 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, alembic, boto, cornice, hawkauthlib, mozsvc, paste, pybrowserid, pyfxa
|
|
|
|
, pymysql, pymysqlsa, sqlalchemy, testfixtures, tokenlib, umemcache
|
|
|
|
, mock, nose, unittest2, webtest
|
2017-12-05 22:28:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-06-23 14:27:58 +01:00
|
|
|
pname = "tokenserver";
|
2018-08-07 09:43:07 +01:00
|
|
|
version = "1.3.1";
|
2017-12-05 22:28:58 +00:00
|
|
|
|
2018-08-07 09:43:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla-services";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "04z0r8xzrmhvh04y8ggdz9gs8qa8lv3qr7kasf6lm63fixsfgrlp";
|
2017-12-05 22:28:58 +00:00
|
|
|
};
|
|
|
|
|
2018-08-07 09:43:07 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic boto cornice hawkauthlib mozsvc paste pybrowserid pyfxa
|
|
|
|
pymysql pymysqlsa sqlalchemy testfixtures tokenlib umemcache
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock nose unittest2 webtest
|
|
|
|
];
|
|
|
|
|
|
|
|
# Requires virtualenv, MySQL, ...
|
2017-12-05 22:28:58 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2018-08-07 09:43:07 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The Mozilla Token Server";
|
|
|
|
homepage = https://github.com/mozilla-services/tokenserver;
|
|
|
|
license = licenses.mpl20;
|
2019-01-30 14:57:40 +00:00
|
|
|
maintainers = with maintainers; [ nadrieril ];
|
2018-08-07 09:43:07 +01:00
|
|
|
};
|
2017-12-05 22:28:58 +00:00
|
|
|
}
|