python.pkgs.openid: init at 2.2.5/3.1.0

This commit is contained in:
Robin Gloster 2018-05-24 16:02:08 +02:00
parent c8987a72e4
commit 2e41891e6d
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "python-openid";
name = "${pname}-${version}";
version = "2.2.5";
src = fetchPypi {
inherit pname version;
sha256 = "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj";
};
doCheck = false;
meta = with stdenv.lib; {
description = "OpenID support for modern servers and consumers";
homepage = http://github.com/openid/python-openid;
license = licenses.asl20;
};
}

View file

@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, defusedxml }:
buildPythonPackage rec {
pname = "python3-openid";
name = "${pname}-${version}";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2";
};
propagatedBuildInputs = [ defusedxml ];
doCheck = false;
meta = with stdenv.lib; {
description = "OpenID support for modern servers and consumers";
homepage = http://github.com/necaris/python3-openid;
license = licenses.asl20;
};
}

View file

@ -408,6 +408,10 @@ in {
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
python-openid = callPackage (if isPy3k
then ../development/python-modules/python3-openid
else ../development/python-modules/python-openid) { };
python-sql = callPackage ../development/python-modules/python-sql { };
python-stdnum = callPackage ../development/python-modules/python-stdnum { };