1{
2 aiosqlite,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 flit-core,
7 lib,
8 pytestCheckHook,
9 sqlalchemy,
10}:
11
12buildPythonPackage rec {
13 pname = "flask-sqlalchemy-lite";
14 version = "0.1.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "pallets-eco";
19 repo = "flask-sqlalchemy-lite";
20 tag = version;
21 hash = "sha256-LpdPp5Gp74DSJqD1DJqwNeaMKdN5pEAUkxnKGYZcVis=";
22 };
23
24 build-system = [ flit-core ];
25
26 dependencies =
27 [
28 flask
29 sqlalchemy
30 ]
31 ++ flask.optional-dependencies.async
32 ++ sqlalchemy.optional-dependencies.asyncio;
33
34 pythonImportsCheck = [ "flask_sqlalchemy_lite" ];
35
36 nativeCheckInputs = [
37 aiosqlite
38 pytestCheckHook
39 ];
40
41 meta = {
42 changelog = "https://github.com/pallets-eco/flask-sqlalchemy-lite/blob/${src.rev}/CHANGES.md";
43 description = "Integrate SQLAlchemy with Flask";
44 homepage = "https://github.com/pallets-eco/flask-sqlalchemy-lite";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ dotlambda ];
47 };
48}