diff --git a/pkgs/development/python-modules/steamship/default.nix b/pkgs/development/python-modules/steamship/default.nix new file mode 100644 index 000000000000..59c3b8ae8eef --- /dev/null +++ b/pkgs/development/python-modules/steamship/default.nix @@ -0,0 +1,62 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools-scm +, pythonRelaxDepsHook +, requests +, pydantic +, aiohttp +, inflection +, fluent-logger +, toml +, click +, semver +, tiktoken +}: + +buildPythonPackage rec { + pname = "steamship"; + version = "2.16.9"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-NHMrReRw8x7N7vy8BqmKx9fDfQYjlOWY7ChdLz+qGxQ="; + }; + + pythonRelaxDeps = [ + "requests" + ]; + + nativeBuildInputs = [ + setuptools-scm + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = [ + requests + pydantic + aiohttp + inflection + fluent-logger + toml + click + semver + tiktoken + ]; + + # almost all tests require "steamship api key" + doCheck = false; + + pythonImportsCheck = [ + "steamship" + ]; + + meta = with lib; { + description = "The fastest way to add language AI to your product"; + homepage = "https://www.steamship.com/"; + changelog = "https://github.com/steamship-core/python-client/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ natsukium ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9b4fa24e4135..d9d8ef988b05 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11567,6 +11567,8 @@ self: super: with self; { steamodd = callPackage ../development/python-modules/steamodd { }; + steamship = callPackage ../development/python-modules/steamship { }; + stem = callPackage ../development/python-modules/stem { }; stestr = callPackage ../development/python-modules/stestr { };