Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 77 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies boto3, langchain-core, numpy,
# tests langchain-standard-tests, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "langchain-aws"; version = "0.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-aws"; rev = "refs/tags/v${version}"; hash = "sha256-LHhyEkgu1sjOk4E4WMy4vYGyikqdVD3WvRPjoAP1CfA="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "--snapshot-warn-unused" "" \ --replace-fail "--cov=langchain_aws" "" '';
sourceRoot = "${src.name}/libs/aws";
build-system = [ poetry-core ];
dependencies = [ boto3 langchain-core numpy ];
pythonRelaxDeps = [ # Boto @ 1.35 has outstripped the version requirement "boto3" ];
nativeCheckInputs = [ langchain-standard-tests pytest-asyncio pytestCheckHook ];
pytestFlagsArray = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_aws" ];
passthru = { inherit (langchain-core) updateScript; };
meta = { changelog = "https://github.com/langchain-ai/langchain-aws/releases/tag/v${version}"; description = "Build LangChain application on AWS"; homepage = "https://github.com/langchain-ai/langchain-aws/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ drupol natsukium ]; };}