blob: 174c24138d484f2cbae346ab6453ab5f66419289 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
black,
jinja2,
dirty-equals,
fastapi,
fetchFromGitHub,
pdm-backend,
pydantic,
pytestCheckHook,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "sqlmodel";
version = "0.0.31";
pyproject = true;
src = fetchFromGitHub {
owner = "tiangolo";
repo = "sqlmodel";
tag = version;
hash = "sha256-HJ8we0gYySagUvs7NEKcwe9l7KEcqmJ8+CTW/rjBdME=";
};
build-system = [ pdm-backend ];
dependencies = [
pydantic
sqlalchemy
];
nativeCheckInputs = [
black
jinja2
dirty-equals
fastapi
pytestCheckHook
];
pythonImportsCheck = [ "sqlmodel" ];
disabledTestPaths = [
# Coverage
"docs_src/tutorial/"
"tests/test_tutorial/"
];
meta = {
description = "Module to work with SQL databases";
homepage = "https://github.com/fastapi/sqlmodel";
changelog = "https://github.com/fastapi/sqlmodel/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|