python3.pkgs.authlib: init at 0.13
Co-authored-by: Jonathan Ringer <jonringer117@gmail.com>
This commit is contained in:
parent
ab397825bf
commit
b64034e1d2
|
@ -0,0 +1,35 @@
|
||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest
|
||||||
|
, mock
|
||||||
|
, cryptography
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.13";
|
||||||
|
pname = "authlib";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lepture";
|
||||||
|
repo = "authlib";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1nv0jbsaqr9qjn7nnl55s42iyx655k7fsj8hs69652lqnfn5y3d5";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ cryptography requests ];
|
||||||
|
|
||||||
|
checkInputs = [ mock pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/lepture/authlib;
|
||||||
|
description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included.";
|
||||||
|
maintainers = with maintainers; [ flokli ];
|
||||||
|
license = licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
|
@ -234,6 +234,8 @@ in {
|
||||||
|
|
||||||
atomman = callPackage ../development/python-modules/atomman { };
|
atomman = callPackage ../development/python-modules/atomman { };
|
||||||
|
|
||||||
|
authlib = callPackage ../development/python-modules/authlib { };
|
||||||
|
|
||||||
# packages defined elsewhere
|
# packages defined elsewhere
|
||||||
|
|
||||||
amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
|
amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
|
||||||
|
|
Loading…
Reference in New Issue