Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 81 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 pillow, 8 pyyaml, 9 chardet, 10 colorlog, 11 filelock, 12 pandas, 13 prettytable, 14 py-cpuinfo, 15 pydantic, 16 requests, 17 ruamel-yaml, 18 typing-extensions, 19 ujson, 20 gputil, 21 huggingface-hub, 22 modelscope, 23 aistudio-sdk, 24 nix-update-script, 25}: 26 27buildPythonPackage rec { 28 pname = "paddlex"; 29 version = "3.3.13"; 30 pyproject = true; 31 32 src = fetchFromGitHub { 33 owner = "PaddlePaddle"; 34 repo = "PaddleX"; 35 tag = "v${version}"; 36 hash = "sha256-ZihftxrU2Ydo8S6CWum0l6xHxeyl6X4urHtV8zo3vpg="; 37 }; 38 39 build-system = [ setuptools ]; 40 41 pythonRelaxDeps = [ 42 "pyyaml" 43 ]; 44 45 dependencies = [ 46 chardet 47 colorlog 48 filelock 49 numpy 50 pandas 51 pillow 52 prettytable 53 py-cpuinfo 54 pydantic 55 pyyaml 56 requests 57 ruamel-yaml 58 typing-extensions 59 ujson 60 gputil 61 huggingface-hub 62 modelscope 63 aistudio-sdk 64 ]; 65 66 passthru.updateScript = nix-update-script { }; 67 68 meta = { 69 homepage = "https://github.com/PaddlePaddle/PaddleX"; 70 license = lib.licenses.asl20; 71 description = "All-in-One Development Tool based on PaddlePaddle"; 72 changelog = "https://github.com/PaddlePaddle/PaddleX/releases/tag/${src.tag}"; 73 maintainers = [ ]; 74 platforms = [ 75 "x86_64-linux" 76 "aarch64-linux" 77 "x86_64-darwin" 78 "aarch64-darwin" 79 ]; 80 }; 81}