nixpkgs/pkgs/applications/science/math/sage/flask-oldsessions.nix
Timo Kaufmann ff8338343b maintainers: create sage team
Maintaining all the packages whose updates might break some aspect of
sage.

For reference:
https://github.com/NixOS/nixpkgs/pull/103810#issuecomment-727536510
2020-11-18 21:27:37 +01:00

37 lines
867 B
Nix

{ 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 = teams.sage.members;
homepage = "https://github.com/mitsuhiko/flask-oldsessions";
};
}