2017-08-25 17:03:14 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, pymongo
|
2018-09-13 15:25:38 +00:00
|
|
|
, vcversioner
|
2017-08-25 17:03:14 +00:00
|
|
|
, lib
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-05-07 21:26:20 +00:00
|
|
|
pname = "flask-pymongo";
|
2019-05-06 00:22:02 +00:00
|
|
|
version = "2.3.0";
|
2017-08-25 17:03:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-05-07 21:26:20 +00:00
|
|
|
pname = "Flask-PyMongo";
|
|
|
|
inherit version;
|
2019-05-06 00:22:02 +00:00
|
|
|
sha256 = "051kwdk07y4xm4yawcjhn6bz8swxp9nanv7jj35mz2l0r0nv03k2";
|
2017-08-25 17:03:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-05-07 21:26:20 +00:00
|
|
|
pytest
|
2017-08-25 17:03:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests seem to hang
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-09-13 15:25:38 +00:00
|
|
|
propagatedBuildInputs = [ flask pymongo vcversioner ];
|
2017-08-25 17:03:14 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-04-22 08:24:21 +00:00
|
|
|
homepage = "https://flask-pymongo.readthedocs.org/";
|
2017-08-25 17:03:14 +00:00
|
|
|
description = "PyMongo support for Flask applications";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2018-09-13 15:25:38 +00:00
|
|
|
}
|