Skip to content

Commit a319304

Browse files
committed
fix issue regarding pkgs.python3
1 parent a1048c5 commit a319304

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

nixos/pkgs/whisper_api/default.nix

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
{ self
2-
, lib
3-
, python3
4-
,
1+
{
2+
self,
3+
lib,
4+
buildPythonApplication,
5+
6+
# build-system
7+
setuptools,
8+
pythonRelaxDepsHook,
9+
10+
# dependencies
11+
fastapi,
12+
ffmpeg-python,
13+
openai-whisper,
14+
python-multipart,
15+
uvicorn,
16+
17+
# tests
18+
unittestCheckHook,
19+
httpx,
520
}:
6-
python3.pkgs.buildPythonApplication {
21+
buildPythonApplication {
722

823
pname = "whisper_api";
924

@@ -18,20 +33,20 @@ python3.pkgs.buildPythonApplication {
1833

1934
pythonRelaxDeps = [ ];
2035

21-
nativeBuildInputs = with python3.pkgs; [
36+
nativeBuildInputs = [
2237
setuptools
2338
pythonRelaxDepsHook
2439
];
2540

26-
propagatedBuildInputs = with python3.pkgs; [
41+
propagatedBuildInputs = [
2742
fastapi
2843
ffmpeg-python
2944
openai-whisper
3045
python-multipart
3146
uvicorn
3247
];
3348

34-
nativeCheckInputs = with python3.pkgs; [
49+
nativeCheckInputs = [
3550
unittestCheckHook
3651
httpx
3752
];

0 commit comments

Comments
 (0)