pythonPackages.pyramid_hawkauth: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 11:32:07 -04:00 committed by Frederik Rietdijk
parent 3c1815eb44
commit bad2b3c229
2 changed files with 30 additions and 12 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchgit
, pyramid
, hawkauthlib
, tokenlib
, webtest
}:
buildPythonPackage rec {
pname = "pyramidhawkauth";
version = "0.1.0";
src = fetchgit {
url = https://github.com/mozilla-services/pyramid_hawkauth.git;
rev = "refs/tags/v${version}";
sha256 = "038ign7qlavlmvrhb2y8bygbxvy4j7bx2k1zg0i3wblg2ja50w7h";
};
propagatedBuildInputs = [ pyramid hawkauthlib tokenlib ];
buildInputs = [ webtest ];
meta = with stdenv.lib; {
homepage = https://github.com/mozilla-services/pyramid_hawkauth;
description = "A Pyramid authentication plugin for HAWK";
license = licenses.mpl20;
};
}

View File

@ -2115,18 +2115,7 @@ in {
pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { };
pyramid_hawkauth = buildPythonPackage rec {
name = "pyramidhawkauth-${version}";
version = "0.1.0";
src = pkgs.fetchgit {
url = https://github.com/mozilla-services/pyramid_hawkauth.git;
rev = "refs/tags/v${version}";
sha256 = "038ign7qlavlmvrhb2y8bygbxvy4j7bx2k1zg0i3wblg2ja50w7h";
};
propagatedBuildInputs = with self; [ pyramid hawkauthlib tokenlib ];
buildInputs = with self; [ webtest ];
};
pyramid_hawkauth = callPackage ../development/python-modules/pyramid_hawkauth { };
pyroute2 = callPackage ../development/python-modules/pyroute2 { };