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