python3Packages.llm-anthropic: 0.14.1 -> 0.15.1
Diff: https://github.com/simonw/llm-anthropic/compare/0.14.1...0.15.1 Changelog: https://github.com/simonw/llm-anthropic/releases/tag/0.15.1 Also remove the explicit updateScript and use the writableTmpDirAsHomeHook hook for the tmp home directory.
This commit is contained in:
@@ -9,19 +9,19 @@
|
||||
pytestCheckHook,
|
||||
pytest-asyncio,
|
||||
pytest-recording,
|
||||
nix-update-script,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "llm-anthropic";
|
||||
version = "0.14.1";
|
||||
version = "0.15.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = "llm-anthropic";
|
||||
tag = version;
|
||||
hash = "sha256-tKgcag8sBJA4QWunaFyZxkZH0mtc0SS17104YuX1Kac=";
|
||||
hash = "sha256-8bVs3MJteOTCiw7n/4pMf+oXMhsQbCSzUFVQqm2ezcE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -30,22 +30,15 @@ buildPythonPackage rec {
|
||||
];
|
||||
dependencies = [ anthropic ];
|
||||
|
||||
# Otherwise tests will fail to create directory
|
||||
# Permission denied: '/homeless-shelter'
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
pytest-recording
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "llm_anthropic" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
passthru.tests = {
|
||||
llm-plugin = callPackage ./tests/llm-plugin.nix { };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user