depot/third_party/nixpkgs/pkgs/development/python-modules/langchain-text-splitters/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

45 lines
869 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, poetry-core
, langchain-core
, lxml
, pythonOlder
}:
buildPythonPackage rec {
pname = "langchain-text-splitters";
version = "0.0.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "langchain_text_splitters";
inherit version;
hash = "sha256-rEWfqYeZ9RF61UJakzCyGWEyHjC8GaKi+fdh3a3WKqE=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
langchain-core
lxml
];
# PyPI source does not have tests
doCheck = false;
pythonImportsCheck = [
"langchain_text_splitters"
];
meta = with lib; {
description = "Build context-aware reasoning applications";
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}