python310Packages.ariadne: fix build

Fix the format and disable tests that require an unpackaged dependency.
This commit is contained in:
Martin Weinelt 2023-05-29 00:45:49 +02:00 committed by Anderson Torres
parent cad29b778f
commit 8a02904240

View file

@ -1,6 +1,7 @@
{ 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";