2018-09-09 20:48:52 +01:00
|
|
|
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
|
2017-01-13 22:55:52 +00:00
|
|
|
, flask, flask_wtf, flask_testing, ldap
|
|
|
|
, mock, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "flask-ldap-login";
|
2018-09-09 19:39:46 +01:00
|
|
|
version = "0.3.4";
|
2018-09-09 20:48:52 +01:00
|
|
|
disabled = isPy3k;
|
2017-01-13 22:55:52 +00:00
|
|
|
|
2018-09-09 19:39:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ContinuumIO";
|
|
|
|
repo = "flask-ldap-login";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1l6zahqhwn5g9fmhlvjv80288b5h2fk5mssp7amdkw5ysk570wzp";
|
2017-01-13 22:55:52 +00:00
|
|
|
};
|
|
|
|
|
2018-09-09 19:39:15 +01:00
|
|
|
patches = [
|
|
|
|
# Fix flask_wtf>=0.9.0 incompatibility. See https://github.com/ContinuumIO/flask-ldap-login/issues/41
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/ContinuumIO/flask-ldap-login/commit/ed08c03c818dc63b97b01e2e7c56862eaa6daa43.patch;
|
|
|
|
sha256 = "19pkhbldk8jq6m10kdylvjf1c8m84fvvj04v5qda4cjyks15aq48";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
checkInputs = [ nose mock flask_testing ];
|
2017-01-13 22:55:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|