17 buildPythonPackage rec {
18 pname = "flask-mongoengine";
19 version = "1.0.0-unstable-2022-08-16";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
25 owner = "MongoEngine";
27 rev = "d4526139cb1e2e94111ab7de96bb629d574c1690";
28 hash = "sha256-oMQU9Z8boc0q+0KzIQAZ8qSyxiITDY0M9FCg75S9MEY=";
31 env.SETUPTOOLS_SCM_PRETEND_VERSION = "1.0.0";
38 propagatedBuildInputs = [
43 ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
45 optional-dependencies = {
49 ] ++ wtforms.optional-dependencies.email;
53 legacy = [ markupsafe ];
56 # Tests require working mongodb connection
59 pythonImportsCheck = [ "flask_mongoengine" ];
62 description = "Flask extension that provides integration with MongoEngine and WTF model forms";
63 homepage = "https://github.com/mongoengine/flask-mongoengine";
64 changelog = "https://github.com/MongoEngine/flask-mongoengine/releases/tag/v${version}";
65 license = licenses.bsd3;