2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-22 10:55:15 +00:00
|
|
|
, email-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
2022-06-16 17:23:12 +00:00
|
|
|
, flask-wtf
|
2023-02-22 10:55:15 +00:00
|
|
|
, markupsafe
|
2020-04-24 23:36:52 +00:00
|
|
|
, mongoengine
|
2023-02-22 10:55:15 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, typing-extensions
|
|
|
|
, wtforms
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-mongoengine";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0-unstable-2022-08-16";
|
2023-02-22 10:55:15 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MongoEngine";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "d4526139cb1e2e94111ab7de96bb629d574c1690";
|
|
|
|
hash = "sha256-oMQU9Z8boc0q+0KzIQAZ8qSyxiITDY0M9FCg75S9MEY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = "1.0.0";
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
email-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
flask
|
2022-06-16 17:23:12 +00:00
|
|
|
flask-wtf
|
2020-04-24 23:36:52 +00:00
|
|
|
mongoengine
|
2023-02-22 10:55:15 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
wtf = [
|
|
|
|
flask-wtf
|
|
|
|
wtforms
|
|
|
|
] ++ wtforms.optional-dependencies.email;
|
|
|
|
# toolbar = [
|
|
|
|
# flask-debugtoolbar
|
|
|
|
# ];
|
|
|
|
legacy = [
|
|
|
|
markupsafe
|
|
|
|
];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
# Tests require working mongodb connection
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_mongoengine"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-02-22 10:55:15 +00:00
|
|
|
description = "Flask extension that provides integration with MongoEngine and WTF model forms";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mongoengine/flask-mongoengine";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/MongoEngine/flask-mongoengine/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|