mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 22:33:52 +00:00
40 lines
800 B
Nix
40 lines
800 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "langchain-protocol";
|
|
version = "0.0.16";
|
|
pyproject = true;
|
|
|
|
# Not available vis Github yet; required by langchain-core
|
|
src = fetchPypi {
|
|
pname = "langchain_protocol";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-gGx83ZUbHE9pL6QPzmCCH/DyIdQ2DidnPd8sK5nCt/8=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"langchain_protocol"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python bindings for the LangChain agent streaming protocol";
|
|
homepage = "https://pypi.org/project/langchain-protocol";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sarahec ];
|
|
};
|
|
})
|