tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.fastapi: 0.95.2 -> 0.103.1
Martin Weinelt
2 years ago
d4d5239e
1733ac71
+47
-28
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
fastapi
default.nix
+47
-28
pkgs/development/python-modules/fastapi/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
, fetchFromGitHub
4
4
+
, pythonOlder
5
5
+
6
6
+
# build-system
7
7
+
, hatchling
8
8
+
9
9
+
# dependencies
10
10
+
, starlette
4
11
, pydantic
5
5
-
, starlette
6
6
-
, pytestCheckHook
7
7
-
, pytest-asyncio
8
8
-
, aiosqlite
9
9
-
, databases
12
12
+
, typing-extensions
13
13
+
14
14
+
# tests
15
15
+
, dirty-equals
10
16
, flask
11
11
-
, httpx
12
12
-
, hatchling
13
13
-
, orjson
14
17
, passlib
15
15
-
, peewee
18
18
+
, pytest-asyncio
19
19
+
, pytestCheckHook
16
20
, python-jose
17
21
, sqlalchemy
18
22
, trio
19
19
-
, pythonOlder
23
23
+
24
24
+
# optional-dependencies
25
25
+
, httpx
26
26
+
, jinja2
27
27
+
, python-multipart
28
28
+
, itsdangerous
29
29
+
, pyyaml
30
30
+
, ujson
31
31
+
, orjson
32
32
+
, email-validator
33
33
+
, uvicorn
20
34
}:
21
35
22
36
buildPythonPackage rec {
23
37
pname = "fastapi";
24
24
-
version = "0.95.2";
38
38
+
version = "0.103.1";
25
39
format = "pyproject";
26
40
27
41
disabled = pythonOlder "3.7";
···
30
44
owner = "tiangolo";
31
45
repo = pname;
32
46
rev = "refs/tags/${version}";
33
33
-
hash = "sha256-wD39CqUZOgwpG/NEGz/pXgQsadzUoM/elxfEXthOlHo=";
47
47
+
hash = "sha256-2J8c3S4Ca+c5bI0tyjMJArJKux9qPmu+ohqve5PhSGI=";
34
48
};
35
49
36
50
nativeBuildInputs = [
37
51
hatchling
38
52
];
39
53
40
40
-
postPatch = ''
41
41
-
substituteInPlace pyproject.toml \
42
42
-
--replace '"databases[sqlite] >=0.3.2,<0.7.0",' "" \
43
43
-
--replace "starlette==" "starlette>="
44
44
-
'';
45
45
-
46
54
propagatedBuildInputs = [
47
55
starlette
48
56
pydantic
57
57
+
typing-extensions
49
58
];
50
59
60
60
+
passthru.optional-dependencies.all = [
61
61
+
httpx
62
62
+
jinja2
63
63
+
python-multipart
64
64
+
itsdangerous
65
65
+
pyyaml
66
66
+
ujson
67
67
+
orjson
68
68
+
email-validator
69
69
+
uvicorn
70
70
+
# pydantic-settings
71
71
+
# pydantic-extra-types
72
72
+
] ++ uvicorn.optional-dependencies.standard;
73
73
+
51
74
nativeCheckInputs = [
52
52
-
aiosqlite
53
53
-
# databases FIXME incompatible with SQLAlchemy 2.0
75
75
+
dirty-equals
54
76
flask
55
55
-
httpx
56
56
-
orjson
57
77
passlib
58
58
-
peewee
59
59
-
python-jose
60
78
pytestCheckHook
61
79
pytest-asyncio
62
62
-
sqlalchemy
80
80
+
python-jose
63
81
trio
64
64
-
]
65
65
-
++ passlib.optional-dependencies.bcrypt
66
66
-
++ pydantic.optional-dependencies.email;
82
82
+
sqlalchemy
83
83
+
] ++ passthru.optional-dependencies.all;
67
84
68
85
pytestFlagsArray = [
69
86
# ignoring deprecation warnings to avoid test failure from
···
92
109
"test_trace"
93
110
# Unexpected number of warnings caught
94
111
"test_warn_duplicate_operation_id"
112
112
+
# assert state["except"] is True
113
113
+
"test_dependency_gets_exception"
95
114
];
96
115
97
116
pythonImportsCheck = [