2018-04-24 21:53:36 +00:00
|
|
|
{ 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";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2018-04-24 21:53:36 +00:00
|
|
|
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;
|
2020-11-17 19:41:33 +00:00
|
|
|
maintainers = teams.sage.members;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mitsuhiko/flask-oldsessions";
|
2018-04-24 21:53:36 +00:00
|
|
|
};
|
|
|
|
}
|