summary refs log tree commit diff
path: root/pkgs/development/python-modules/tokenserver/default.nix
blob: 6d3c7e2be0548003bf65eaaa245b993dd68ebac1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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;
    maintainers = with maintainers; [ nadrieril ];
  };
}