2017-01-13 22:55:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl
|
|
|
|
, flask, flask_wtf, flask_testing, ldap
|
|
|
|
, mock, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "flask-ldap-login";
|
|
|
|
version = "0.3.0";
|
|
|
|
name = "${pname}-${version}";
|
2017-01-13 22:55:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/f/flask-ldap-login/${name}.tar.gz";
|
|
|
|
sha256 = "085rik7q8xrp5g95346p6jcp9m2yr8kamwb2kbiw4q0b0fpnnlgq";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose mock flask_testing ];
|
|
|
|
propagatedBuildInputs = [ flask flask_wtf ldap ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests -d";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/ContinuumIO/flask-ldap-login;
|
|
|
|
description = "User session management for Flask";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
};
|
|
|
|
}
|