pythonPackages.flask_ldap_login: Fix build

This commit is contained in:
Josef Kemetmüller 2018-09-09 20:39:15 +02:00
parent 201ee19758
commit d4e89680d2

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
, flask, flask_wtf, flask_testing, ldap
, mock, nose }:
@ -11,6 +11,14 @@ buildPythonPackage rec {
sha256 = "085rik7q8xrp5g95346p6jcp9m2yr8kamwb2kbiw4q0b0fpnnlgq";
};
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";
})
];
checkInputs = [ nose mock flask_testing ];
propagatedBuildInputs = [ flask flask_wtf ldap ];