nixpkgs/pkgs/development/python-modules/flask-ldap-login/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

27 lines
686 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, flask, flask_wtf, flask_testing, ldap
, mock, nose }:
buildPythonPackage rec {
pname = "flask-ldap-login";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "085rik7q8xrp5g95346p6jcp9m2yr8kamwb2kbiw4q0b0fpnnlgq";
};
checkInputs = [ 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 ];
};
}