e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pythonRelaxDepsHook
|
|
, requests
|
|
, pydantic
|
|
, aiohttp
|
|
, inflection
|
|
, fluent-logger
|
|
, toml
|
|
, click
|
|
, semver
|
|
, tiktoken
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "steamship";
|
|
version = "2.17.33";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-hvvXg+V/VKTWWdqXM7Q1K5awemkGhSz64gV7HeRBXfg=";
|
|
};
|
|
|
|
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 ];
|
|
# https://github.com/steamship-core/python-client/issues/503
|
|
broken = versionAtLeast pydantic.version "2";
|
|
};
|
|
}
|