@@ -1,32 +1,35 @@
1−{ buildPythonPackage
2−, fetchgit
3−, testfixtures
4−, cornice
5−, mozsvc
6−, pybrowserid
7−, tokenlib
8−, pymysql
9−, umemcache
10−, hawkauthlib
11−, alembic
12−, pymysqlsa
13−, paste
14−, boto
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
155}:
166
177buildPythonPackage rec {
188 pname = "tokenserver";
19− version = "1.2.27";
9+ version = "1.3.1";
2010
21− src = fetchgit {
22− url = https://github.com/mozilla-services/tokenserver.git;
23− rev = "refs/tags/${version}";
24− sha256 = "0il3bgjld495g9gxvvrm56kpan5swaizzg216qz3zxmb6w9ly3fm";
11+ src = fetchFromGitHub {
12+ owner = "mozilla-services";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "04z0r8xzrmhvh04y8ggdz9gs8qa8lv3qr7kasf6lm63fixsfgrlp";
2516 };
2617
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, ...
2728 doCheck = false;
28− checkInputs = [ testfixtures ];
29− propagatedBuildInputs = [ cornice mozsvc pybrowserid tokenlib
30− pymysql umemcache hawkauthlib alembic pymysqlsa paste boto ];
3129
30+ meta = with lib; {
31+ description = "The Mozilla Token Server";
32+ homepage = https://github.com/mozilla-services/tokenserver;
33+ license = licenses.mpl20;
34+ };
3235}