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