Commit 8a029042 authored by Martin Weinelt's avatar Martin Weinelt Committed by Anderson Torres
Browse files

python310Packages.ariadne: fix build

Fix the format and disable tests that require an unpackaged dependency.
parent cad29b77
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, freezegun
, graphql-core
, opentracing
@@ -17,7 +18,7 @@
buildPythonPackage rec {
  pname = "ariadne";
  version = "0.18.1";
  format = "setuptools";
  format = "pyproject";

  disabled = pythonOlder "3.7";

@@ -28,6 +29,10 @@ buildPythonPackage rec {
    hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU=";
  };

  nativeBuildInputs = [
    hatchling
  ];

  propagatedBuildInputs = [
    graphql-core
    starlette
@@ -55,6 +60,12 @@ buildPythonPackage rec {
    "test_attempt_parse_non_json_request_body_raises_bad_request_error"
  ];

  disabledTestPaths = [
    # missing graphql-sync-dataloader test dep
    "tests/test_dataloaders.py"
    "tests/wsgi/test_configuration.py"
  ];

  meta = with lib; {
    description = "Python library for implementing GraphQL servers using schema-first approach";
    homepage = "https://ariadnegraphql.org";