1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6 requests,
7 pydantic,
8 aiohttp,
9 inflection,
10 fluent-logger,
11 toml,
12 click,
13 semver,
14 tiktoken,
15}:
16
17buildPythonPackage rec {
18 pname = "steamship";
19 version = "2.17.34";
20 format = "pyproject";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-U9SA2Dvepl9BjrvhH+8bVBNjby8IWu5UE+/oor7YWzI=";
25 };
26
27 pythonRelaxDeps = [ "requests" ];
28
29 nativeBuildInputs = [
30 setuptools-scm
31 ];
32
33 propagatedBuildInputs = [
34 requests
35 pydantic
36 aiohttp
37 inflection
38 fluent-logger
39 toml
40 click
41 semver
42 tiktoken
43 ];
44
45 # almost all tests require "steamship api key"
46 doCheck = false;
47
48 pythonImportsCheck = [ "steamship" ];
49
50 meta = with lib; {
51 description = "Fastest way to add language AI to your product";
52 homepage = "https://www.steamship.com/";
53 changelog = "https://github.com/steamship-core/python-client/releases/tag/${version}";
54 license = licenses.mit;
55 maintainers = with maintainers; [ natsukium ];
56 # https://github.com/steamship-core/python-client/issues/503
57 broken = versionAtLeast pydantic.version "2";
58 };
59}