Unverified Commit 1567675b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.ariadne: relax graphql-core (#446574)

parents 196198f1 05a81726
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ in
py.pkgs.buildPythonPackage rec {
  pname = "irrd";
  version = "4.5.0b1";
  format = "pyproject";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "irrdnet";
@@ -55,11 +55,10 @@ py.pkgs.buildPythonPackage rec {
    substituteInPlace pyproject.toml \
      --replace-fail py-radix py-radix-sr
  '';

  pythonRelaxDeps = true;

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  ];
  build-system = with python3.pkgs; [ poetry-core ];

  nativeCheckInputs = [
    git
@@ -69,14 +68,14 @@ py.pkgs.buildPythonPackage rec {
    postgresqlTestHook
  ]
  ++ (with py.pkgs; [
    pytest-asyncio
    pytest-asyncio_0
    pytest-freezegun
    pytestCheckHook
    smtpdfix
    httpx
  ]);

  propagatedBuildInputs =
  dependencies =
    with py.pkgs;
    [
      python-gnupg
@@ -142,12 +141,17 @@ py.pkgs.buildPythonPackage rec {
    kill $REDIS_PID
  '';

  # skip tests that require internet access
  disabledTests = [
    # Skip tests that require internet access
    "test_020_dash_o_noop"
    "test_050_non_json_response"
  ];

  disabledTestPaths = [
    # Doesn't work with later pytest releases
    "irrd/server/whois/tests/test_query_response.py"
  ];

  meta = {
    changelog = "https://irrd.readthedocs.io/en/v${version}/releases/";
    description = "Internet Routing Registry database server, processing IRR objects in the RPSL format";
+8 −5
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@
  pytest-asyncio,
  pytest-mock,
  pytestCheckHook,
  pythonOlder,
  python-multipart,
  starlette,
  syrupy,
@@ -22,8 +21,6 @@ buildPythonPackage rec {
  version = "0.26.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "mirumee";
    repo = "ariadne";
@@ -33,9 +30,11 @@ buildPythonPackage rec {

  patches = [ ./remove-opentracing.patch ];

  nativeBuildInputs = [ hatchling ];
  pythonRelaxDeps = [ "graphql-core" ];

  build-system = [ hatchling ];

  propagatedBuildInputs = [
  dependencies = [
    graphql-core
    starlette
    typing-extensions
@@ -64,6 +63,10 @@ buildPythonPackage rec {
    # opentracing
    "test_query_is_executed_for_multipart_form_request_with_file"
    "test_query_is_executed_for_multipart_request_with_large_file_with_tracing"
    # AssertionError:  assert not [GraphQLError(...
    "test_enum_with_int_values_from_dict"
    "test_enum_with_int_enum_values"
    "test_enum_with_str_enum_values"
  ];

  disabledTestPaths = [