mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
30 lines
755 B
Nix
30 lines
755 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast
|
|
, flask, nose, mock, blinker}:
|
|
|
|
buildPythonPackage rec {
|
|
name = "Flask-Login-${version}";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxcountryman";
|
|
repo = "flask-login";
|
|
rev = version;
|
|
sha256 = "0sjbmk8m4mmd9g99n6c6lx9nv2jwwqp6qsqhl945w2m0f1sknwdh";
|
|
};
|
|
|
|
buildInputs = [ nose mock ];
|
|
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 ];
|
|
};
|
|
}
|