Skip to content
Merged
14 changes: 8 additions & 6 deletions pkgs/development/python-modules/aistudio-sdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
buildPythonPackage,
fetchPypi,
bce-python-sdk,
click,
prettytable,
psutil,
requests,
tqdm,
psutil,
click,
prettytable,
}:

let
Expand All @@ -30,11 +30,13 @@ buildPythonPackage {

dependencies = [
bce-python-sdk
click
prettytable
psutil
requests
tqdm
# Implicit dependency for file_download.py
psutil
# `aistudio` binary dependencies
click
prettytable
];

pythonImportsCheck = [ "aistudio_sdk" ];
Expand Down
21 changes: 14 additions & 7 deletions pkgs/development/python-modules/bce-python-sdk/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
{
lib,
buildPythonPackage,
pythonAtLeast,
fetchPypi,
fetchpatch,
setuptools,
future,
pycryptodome,
six,
}:

let
version = "0.9.46";
version = "0.9.57";
in
buildPythonPackage {
pname = "bce-python-sdk";
inherit version;
pyproject = true;

disabled = pythonAtLeast "3.13";

src = fetchPypi {
pname = "bce_python_sdk";
inherit version;
hash = "sha256-S/AbIubRcszZSqIB+LxvKpjQ2keEFg53z6z8xxwmhr4=";
hash = "sha256-797kmORvaBg/W31BnPgFJLzsLAzWHe+ABdNYtP7PQ4E=";
};

patches = [
# From https://github.com/baidubce/bce-sdk-python/pull/15 . Upstream
# doesn't seem to be responsive, the patch there doesn't apply cleanly on
# this version, so a vendored patch was produced by running:
#
# git show -- setup.py baidubce
#
# in the Git checkout of the PR above.
./no-future.patch
];

build-system = [ setuptools ];

dependencies = [
future
pycryptodome
six
];
Expand Down
Loading
Loading