pythonPakcages.tokenlib: refacotr move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 11:01:14 -04:00
parent 3ef39ecdb0
commit 7735833264
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 27 additions and 11 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchgit
, requests
, webob
}:
buildPythonPackage rec {
pname = "tokenlib";
version = "0.3.1";
src = fetchgit {
url = https://github.com/mozilla-services/tokenlib.git;
rev = "refs/tags/${version}";
sha256 = "0bq6dqyfwh29pg8ngmrm4mx4q27an9lsj0p9l79p9snn4g2rxzc8";
};
propagatedBuildInputs = [ requests webob ];
meta = with stdenv.lib; {
homepage = https://github.com/mozilla-services/tokenlib;
description = "Generic support library for signed-token-based auth schemes";
license = licenses.mpl20;
};
}

View File

@ -4230,17 +4230,7 @@ in {
tornado = callPackage ../development/python-modules/tornado { };
tornado_4 = callPackage ../development/python-modules/tornado { version = "4.5.3"; };
tokenlib = buildPythonPackage rec {
name = "tokenlib-${version}";
version = "0.3.1";
src = pkgs.fetchgit {
url = https://github.com/mozilla-services/tokenlib.git;
rev = "refs/tags/${version}";
sha256 = "0bq6dqyfwh29pg8ngmrm4mx4q27an9lsj0p9l79p9snn4g2rxzc8";
};
propagatedBuildInputs = with self; [ requests webob ];
};
tokenlib = callPackage ../development/python-modules/tokenlib { };
tunigo = callPackage ../development/python-modules/tunigo { };