Skip to content

Commit

Permalink
Merge pull request #46438 from knedlsepp/fix-pythonPackages.flask_lda…
Browse files Browse the repository at this point in the history
…p_login

pythonPackages.flask_ldap_login: Fix build
  • Loading branch information
xeji committed Sep 9, 2018
2 parents a4b040e + b667a76 commit d18aace
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/development/python-modules/flask-ldap-login/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];

Expand Down

0 comments on commit d18aace

Please sign in to comment.