1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 webob,
7}:
8
9buildPythonPackage rec {
10 pname = "tokenlib";
11 version = "0.3.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "mozilla-services";
16 repo = pname;
17 rev = "refs/tags/${version}";
18 sha256 = "0bq6dqyfwh29pg8ngmrm4mx4q27an9lsj0p9l79p9snn4g2rxzc8";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 webob
24 ];
25
26 meta = with lib; {
27 homepage = "https://github.com/mozilla-services/tokenlib";
28 description = "Generic support library for signed-token-based auth schemes";
29 license = licenses.mpl20;
30 };
31}