depot/third_party/nixpkgs/pkgs/development/python-modules/steamship/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
requests,
pydantic,
aiohttp,
inflection,
fluent-logger,
toml,
click,
semver,
tiktoken,
}:
buildPythonPackage rec {
pname = "steamship";
version = "2.17.34";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-U9SA2Dvepl9BjrvhH+8bVBNjby8IWu5UE+/oor7YWzI=";
};
pythonRelaxDeps = [ "requests" ];
nativeBuildInputs = [
setuptools-scm
];
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 = "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 ];
# https://github.com/steamship-core/python-client/issues/503
broken = versionAtLeast pydantic.version "2";
};
}