diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/langchain-community/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/langchain-community/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/langchain-community/default.nix b/nixpkgs/pkgs/development/python-modules/langchain-community/default.nix new file mode 100644 index 000000000000..c129f8c8a557 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/langchain-community/default.nix @@ -0,0 +1,64 @@ +{ lib +, buildPythonPackage +, fetchPypi +, poetry-core +, pythonOlder +, aiohttp +, dataclasses-json +, langchain-core +, langsmith +, numpy +, pyyaml +, requests +, sqlalchemy +, tenacity +, typer +}: + +buildPythonPackage rec { + pname = "langchain-community"; + version = "0.0.12"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + pname = "langchain_community"; + inherit version; + hash = "sha256-fP42xSsfuGwQldTewM9Gahx1KnRGEE6LOc8PcFEqSFE="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + dataclasses-json + langchain-core + langsmith + numpy + pyyaml + requests + sqlalchemy + tenacity + ]; + + passthru.optional-dependencies = { + cli = [ + typer + ]; + }; + + pythonImportsCheck = [ "langchain_community" ]; + + # PyPI source does not have tests + doCheck = false; + + meta = with lib; { + description = "Community contributed LangChain integrations"; + homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community"; + license = licenses.mit; + maintainers = with maintainers; [ natsukium ]; + }; +} |