Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch 2, flask, flask_wtf, flask_testing, ldap 3, mock, nose }: 4 5buildPythonPackage rec { 6 pname = "flask-ldap-login"; 7 version = "0.3.4"; 8 disabled = isPy3k; 9 10 src = fetchFromGitHub { 11 owner = "ContinuumIO"; 12 repo = "flask-ldap-login"; 13 rev = version; 14 sha256 = "1l6zahqhwn5g9fmhlvjv80288b5h2fk5mssp7amdkw5ysk570wzp"; 15 }; 16 17 patches = [ 18 # Fix flask_wtf>=0.9.0 incompatibility. See https://github.com/ContinuumIO/flask-ldap-login/issues/41 19 (fetchpatch { 20 url = https://github.com/ContinuumIO/flask-ldap-login/commit/ed08c03c818dc63b97b01e2e7c56862eaa6daa43.patch; 21 sha256 = "19pkhbldk8jq6m10kdylvjf1c8m84fvvj04v5qda4cjyks15aq48"; 22 }) 23 ]; 24 25 checkInputs = [ nose mock flask_testing ]; 26 propagatedBuildInputs = [ flask flask_wtf ldap ]; 27 28 checkPhase = "nosetests -d"; 29 30 meta = with stdenv.lib; { 31 homepage = https://github.com/ContinuumIO/flask-ldap-login; 32 description = "User session management for Flask"; 33 license = licenses.mit; 34 platforms = platforms.all; 35 maintainers = with maintainers; [ mic92 ]; 36 }; 37}