about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-sesame/default.nix
blob: 9887580b0fddecdfe1bbf2001bc32864f2808d26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonPackage, fetchPypi
, django }:

buildPythonPackage rec {
  pname = "django-sesame";
  version = "1.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "081q3vd9waiajiipg99flw0vlzk920sz07067v3n5774gx0qhbaa";
  };

  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";
    homepage = http://github.com/aaugustin/django-sesame;
    license = licenses.bsd3;
    maintainers = with maintainers; [ elohmeier ];
  };
}