about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tokenserver/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tokenserver/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tokenserver/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tokenserver/default.nix b/nixpkgs/pkgs/development/python-modules/tokenserver/default.nix
new file mode 100644
index 000000000000..6d3c7e2be054
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/tokenserver/default.nix
@@ -0,0 +1,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 ];
+  };
+}