2019-01-30 12:59:33 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, django }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-sesame";
|
2019-10-24 07:47:29 +01:00
|
|
|
version = "1.7";
|
2019-01-30 12:59:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:29 +01:00
|
|
|
sha256 = "e68bad4a6ef44322380f1f01d009f9d3cb55d1ffef0b669574b511db5ab0c6c0";
|
2019-01-30 12:59:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ django ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH="$(pwd):$PYTHONPATH" \
|
|
|
|
DJANGO_SETTINGS_MODULE=sesame.test_settings \
|
|
|
|
django-admin test sesame
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "URLs with authentication tokens for automatic login";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://github.com/aaugustin/django-sesame;
|
2019-01-30 12:59:33 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|