aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/math/sage/flask-oldsessions.nix
blob: 403dc8708fabb147a6ed2273632fd1ab1256cf61 (plain)
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
28
29
30
31
32
33
34
35
36
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, flask
}:

buildPythonPackage rec {
  pname = "Flask-OldSessions";
  version = "0.10";

  # no artifact on pypi: https://github.com/mitsuhiko/flask-oldsessions/issues/1
  src = fetchFromGitHub {
    owner = "mitsuhiko";
    repo = "flask-oldsessions";
    rev = version;
    sha256 = "04b5m8njjiwld9a0zw55iqwvyjgwcpdbhz1cic8nyhgcmypbicqn";
  };

  propagatedBuildInputs = [
    flask
  ];

  # missing module flask.testsuite, probably assumes an old version of flask
  doCheck = false;
  checkPhase = ''
    ${python.interpreter} run-tests.py
  '';

  meta = with stdenv.lib; {
    description = "Provides a session class that works like the one in Flask before 0.10.";
    license = licenses.bsd2;
    maintainers = with maintainers; [ timokau ];
    homepage = "https://github.com/mitsuhiko/flask-oldsessions";
  };
}