2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
requests,
|
|
|
|
pydantic,
|
|
|
|
aiohttp,
|
|
|
|
inflection,
|
|
|
|
fluent-logger,
|
|
|
|
toml,
|
|
|
|
click,
|
|
|
|
semver,
|
|
|
|
tiktoken,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "steamship";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.17.34";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-U9SA2Dvepl9BjrvhH+8bVBNjby8IWu5UE+/oor7YWzI=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "requests" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pydantic
|
|
|
|
aiohttp
|
|
|
|
inflection
|
|
|
|
fluent-logger
|
|
|
|
toml
|
|
|
|
click
|
|
|
|
semver
|
|
|
|
tiktoken
|
|
|
|
];
|
|
|
|
|
|
|
|
# almost all tests require "steamship api key"
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "steamship" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fastest way to add language AI to your product";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://www.steamship.com/";
|
|
|
|
changelog = "https://github.com/steamship-core/python-client/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
2024-01-13 08:15:51 +00:00
|
|
|
# https://github.com/steamship-core/python-client/issues/503
|
|
|
|
broken = versionAtLeast pydantic.version "2";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|