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