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