nixpkgs/pkgs/development/python-modules/Flask-PyMongo/default.nix

34 lines
605 B
Nix
Raw Normal View History

{ buildPythonPackage
, fetchPypi
, flask
, pymongo
, lib
, pytest
}:
buildPythonPackage rec {
pname = "Flask-PyMongo";
2018-08-13 08:23:58 +01:00
version = "2.1.0";
src = fetchPypi {
inherit pname version;
2018-08-13 08:23:58 +01:00
sha256 = "0b99dd99985660ebbc4b34bb44550f88a527cbc573faa01febccce3c4ab28347";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test tests
'';
# Tests seem to hang
doCheck = false;
propagatedBuildInputs = [ flask pymongo ];
meta = {
homepage = "http://flask-pymongo.readthedocs.org/";
description = "PyMongo support for Flask applications";
license = lib.licenses.bsd2;
};
}