mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
052acfe930
A search through the source code (https://github.com/openid/python-openid/search?q=django and https://github.com/openid/python-openid/search?q=twill) reveals that they are only used in examples and tests.
41 lines
803 B
Nix
41 lines
803 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, django
|
|
, nose
|
|
, twill
|
|
, pycrypto
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-openid";
|
|
version = "2.2.5";
|
|
|
|
disabled = isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pycrypto
|
|
];
|
|
|
|
# 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 django twill ];
|
|
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/;
|
|
};
|
|
}
|