2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 15:01:14 +00:00
|
|
|
, buildPythonPackage
|
2020-11-01 22:39:49 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-29 15:01:14 +00:00
|
|
|
, requests
|
|
|
|
, webob
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tokenlib";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
2020-11-01 22:39:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla-services";
|
|
|
|
repo = pname;
|
2018-10-29 15:01:14 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "0bq6dqyfwh29pg8ngmrm4mx4q27an9lsj0p9l79p9snn4g2rxzc8";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests webob ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mozilla-services/tokenlib";
|
2018-10-29 15:01:14 +00:00
|
|
|
description = "Generic support library for signed-token-based auth schemes";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|