blob: 0afe06b3f4fbe939f6088427904566495951d9a1 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
bce-python-sdk,
requests,
tqdm,
psutil,
click,
prettytable,
}:
let
version = "0.3.8";
format = "wheel";
in
buildPythonPackage {
pname = "aistudio-sdk";
inherit version format;
# No source code dist available
src = fetchPypi {
pname = "aistudio_sdk";
inherit version format;
dist = "py3";
python = "py3";
hash = "sha256-v8lq9yQ6wu4zAwFISapAKHF8zlr6Yir4z+Oh1E0ZQdY=";
};
dependencies = [
bce-python-sdk
requests
tqdm
# Implicit dependency for file_download.py
psutil
# `aistudio` binary dependencies
click
prettytable
];
pythonImportsCheck = [ "aistudio_sdk" ];
meta = {
description = "Python client library for the AIStudio API";
homepage = "https://pypi.org/project/aistudio-sdk";
license = lib.licenses.unfree;
mainProgram = "aistudio";
maintainers = with lib.maintainers; [ kyehn ];
sourceProvenance = with lib.sourceTypes; [ fromSource ];
};
}
|