Merge pull request #248354 from natsukium/anthropic/fix

python310Packages.anthropic: 0.3.6 -> 0.3.8; add patch for pytest-asyncio
This commit is contained in:
Fabian Affolter
2023-08-13 21:55:58 +02:00
committed by GitHub
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, anyio
, distro
@@ -16,7 +17,7 @@
buildPythonPackage rec {
pname = "anthropic";
version = "0.3.6";
version = "0.3.8";
format = "pyproject";
disabled = pythonOlder "3.8";
@@ -25,9 +26,17 @@ buildPythonPackage rec {
owner = "anthropics";
repo = "anthropic-sdk-python";
rev = "refs/tags/v${version}";
hash = "sha256-dfMlM7IRP1PG7Ynr+MR4OPeKnHBbhhWKSug7UQ4/4rI=";
hash = "sha256-rNLKIZKX9AI0IKGicozllh+XGU4Ll91EfRaAfJYJtJE=";
};
patches = [
(fetchpatch {
name = "support-pytest-asyncio-0.21.0.patch";
url = "https://github.com/anthropics/anthropic-sdk-python/commit/1e199aa9b38970c5b5b4492907494ac653a7f756.patch";
hash = "sha256-f9KldnvXuRKVgT7Xb/xdhInKOeXvi4g5OxVRD0PMhgQ=";
})
];
nativeBuildInputs = [
poetry-core
];