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 {
|
|
|
|
pname = "Flask-PyMongo";
|
2018-11-09 09:46:03 +00:00
|
|
|
version = "2.2.0";
|
2017-08-25 18:03:14 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-09 09:46:03 +00:00
|
|
|
sha256 = "0yi1r13p3l1d5dpdfnyp239l6l17nwvyky8y62nmmqxlsp2ja9hi";
|
2017-08-25 18:03:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-09-13 16:25:38 +01:00
|
|
|
py.test
|
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 = {
|
|
|
|
homepage = "http://flask-pymongo.readthedocs.org/";
|
|
|
|
description = "PyMongo support for Flask applications";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2018-09-13 16:25:38 +01:00
|
|
|
}
|