nixpkgs/pkgs/development/python-modules/flask-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

30 lines
779 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast
, flask, blinker, nose, mock, semantic-version }:
buildPythonPackage rec {
pname = "Flask-Login";
version = "0.4.1";
src = fetchFromGitHub {
owner = "maxcountryman";
repo = "flask-login";
rev = version;
sha256 = "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9";
};
checkInputs = [ nose mock semantic-version ];
propagatedBuildInputs = [ flask blinker ];
checkPhase = "nosetests -d";
doCheck = pythonAtLeast "3.3";
meta = with stdenv.lib; {
homepage = https://github.com/maxcountryman/flask-login;
description = "User session management for Flask";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
}