Merge pull request #46438 from knedlsepp/fix-pythonPackages.flask_ldap_login

pythonPackages.flask_ldap_login: Fix build
This commit is contained in:
xeji 2018-09-09 22:00:59 +02:00 committed by GitHub
commit d18aaceda6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
, flask, flask_wtf, flask_testing, ldap
, mock, nose }:
buildPythonPackage rec {
pname = "flask-ldap-login";
version = "0.3.0";
version = "0.3.4";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "085rik7q8xrp5g95346p6jcp9m2yr8kamwb2kbiw4q0b0fpnnlgq";
src = fetchFromGitHub {
owner = "ContinuumIO";
repo = "flask-ldap-login";
rev = version;
sha256 = "1l6zahqhwn5g9fmhlvjv80288b5h2fk5mssp7amdkw5ysk570wzp";
};
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 ];