diff --git a/pkgs/development/python-modules/tokenlib/default.nix b/pkgs/development/python-modules/tokenlib/default.nix new file mode 100644 index 000000000000..24f54b98a96e --- /dev/null +++ b/pkgs/development/python-modules/tokenlib/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 37498f4a44a7..032c1ced8d15 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };