Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / tokenserver / default.nix
blob6d3c7e2be0548003bf65eaaa245b993dd68ebac1
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 }:
7 buildPythonPackage rec {
8   pname = "tokenserver";
9   version = "1.3.1";
11   src = fetchFromGitHub {
12     owner = "mozilla-services";
13     repo = pname;
14     rev = version;
15     sha256 = "04z0r8xzrmhvh04y8ggdz9gs8qa8lv3qr7kasf6lm63fixsfgrlp";
16   };
18   propagatedBuildInputs = [
19     alembic boto cornice hawkauthlib mozsvc paste pybrowserid pyfxa
20     pymysql pymysqlsa sqlalchemy testfixtures tokenlib umemcache
21   ];
23   checkInputs = [
24     mock nose unittest2 webtest
25   ];
27   # Requires virtualenv, MySQL, ...
28   doCheck = false;
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   };