Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/python-openid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, python-openid
, django
, nose
, twill
, pycrypto
}:

buildPythonPackage rec {
pname = "python-openid";
version = "2.2.5";

disabled = isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj";
};

propagatedBuildInputs = [
django
twill
pycrypto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these really runtime dependencies? I don't see any install_requires in https://github.com/openid/python-openid/blob/2.2.5/setup.py.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then they probably belong in checkInputs

];

# Cannot access the djopenid example module.
# I don't know how to fix that (adding the examples dir to PYTHONPATH doesn't work)
doCheck = false;
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';

meta = with stdenv.lib; {
description = "OpenID library for Python";
license = licenses.asl20;
maintainers = with maintainers; [ timokau ];
homepage = https://github.com/openid/python-openid/;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7118,6 +7118,8 @@ in {

python_openzwave = callPackage ../development/python-modules/python_openzwave { };

python-openid = callPackage ../development/python-modules/python-openid { };

python-Levenshtein = buildPythonPackage rec {
name = "python-Levenshtein-${version}";
version = "0.12.0";
Expand Down