diff --git a/pkgs/development/python-modules/flask-ldap-login.nix b/pkgs/development/python-modules/flask-ldap-login.nix new file mode 100644 index 000000000000..37f9d72dd3f8 --- /dev/null +++ b/pkgs/development/python-modules/flask-ldap-login.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchurl +, flask, flask_wtf, flask_testing, ldap +, mock, nose }: + +buildPythonPackage rec { + name = "flask-ldap-login-0.3.0"; + + src = fetchurl { + url = "mirror://pypi/f/flask-ldap-login/${name}.tar.gz"; + sha256 = "085rik7q8xrp5g95346p6jcp9m2yr8kamwb2kbiw4q0b0fpnnlgq"; + }; + + buildInputs = [ nose mock flask_testing ]; + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 974b3ec1f21f..c0f8bac35239 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11324,6 +11324,8 @@ in { flask_login = callPackage ../development/python-modules/flask-login.nix { }; + flask_ldap_login = callPackage ../development/python-modules/flask-ldap-login.nix { }; + flask_migrate = buildPythonPackage rec { name = "Flask-Migrate-${version}"; version = "1.7.0";