Unverified Commit fcbe86d6 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.anthropic: 0.79.0 -> 0.84.0 (#496430)

parents 9aebe67e 8643fd4c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
  jiter,
  pydantic,
  sniffio,
  tokenizers,
  typing-extensions,

  # optional dependencies
@@ -28,6 +27,7 @@

  # test
  dirty-equals,
  http-snapshot,
  inline-snapshot,
  nest-asyncio,
  pytest-asyncio,
@@ -38,14 +38,14 @@

buildPythonPackage (finalAttrs: {
  pname = "anthropic";
  version = "0.79.0";
  version = "0.84.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "anthropics";
    repo = "anthropic-sdk-python";
    tag = "v${finalAttrs.version}";
    hash = "sha256-//VKkn9M2uOj8PBoWTY872ZOyTc+OjBgEUGtKsYDWpk=";
    hash = "sha256-03nvs97JNQrOu2rxOXWpJiUj+DCI5I/PTcKLuZUZ3t0=";
  };

  postPatch = ''
@@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: {
    jiter
    pydantic
    sniffio
    tokenizers
    typing-extensions
  ];

@@ -84,6 +83,7 @@ buildPythonPackage (finalAttrs: {

  nativeCheckInputs = [
    dirty-equals
    http-snapshot
    inline-snapshot
    nest-asyncio
    pytest-asyncio
+58 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  httpx,
  inline-snapshot,
  lib,
  pytest,
  pytestCheckHook,
  requests,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "http-snapshot";
  version = "0.1.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "karpetrosyan";
    repo = "http-snapshot";
    tag = finalAttrs.version;
    hash = "sha256-4roxtwzB3HXwvlBqjdHEit4flXlogVwzlYNgQE8vFwE=";
  };

  build-system = [ setuptools ];

  buildInputs = [
    pytest
  ];

  dependencies = [
    inline-snapshot
  ];

  optional-dependencies = {
    httpx = [ httpx ];
    requests = [ requests ];
  };

  pythonImportsCheck = [ "http_snapshot" ];

  nativeCheckInputs = [
    pytestCheckHook
  ]
  ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;

  pytestFlags = [
    "--inline-snapshot=disable"
  ];

  meta = {
    changelog = "https://github.com/karpetrosyan/http-snapshot/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    description = "Pytest plugin that snapshots requests made with popular Python HTTP clients";
    homepage = "https://github.com/karpetrosyan/http-snapshot";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -7156,6 +7156,8 @@ self: super: with self; {
  http-sfv = callPackage ../development/python-modules/http-sfv { };
  http-snapshot = callPackage ../development/python-modules/http-snapshot { };
  httpagentparser = callPackage ../development/python-modules/httpagentparser { };
  httpauth = callPackage ../development/python-modules/httpauth { };