Skip to content

Commit

Permalink
python311Packages.langchain-community: init at 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 14, 2024
1 parent e3f00a4 commit bc4f1f5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
64 changes: 64 additions & 0 deletions pkgs/development/python-modules/langchain-community/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6182,6 +6182,8 @@ self: super: with self; {

langchain = callPackage ../development/python-modules/langchain { };

langchain-community = callPackage ../development/python-modules/langchain-community { };

langchain-core = callPackage ../development/python-modules/langchain-core { };

langcodes = callPackage ../development/python-modules/langcodes { };
Expand Down

0 comments on commit bc4f1f5

Please sign in to comment.