python310Packages.ariadne: fix build
Fix the format and disable tests that require an unpackaged dependency.
This commit is contained in:
parent
cad29b778f
commit
8a02904240
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, hatchling
|
||||||
, freezegun
|
, freezegun
|
||||||
, graphql-core
|
, graphql-core
|
||||||
, opentracing
|
, opentracing
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ariadne";
|
pname = "ariadne";
|
||||||
version = "0.18.1";
|
version = "0.18.1";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -28,6 +29,10 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU=";
|
hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
graphql-core
|
graphql-core
|
||||||
starlette
|
starlette
|
||||||
|
@ -55,6 +60,12 @@ buildPythonPackage rec {
|
||||||
"test_attempt_parse_non_json_request_body_raises_bad_request_error"
|
"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; {
|
meta = with lib; {
|
||||||
description = "Python library for implementing GraphQL servers using schema-first approach";
|
description = "Python library for implementing GraphQL servers using schema-first approach";
|
||||||
homepage = "https://ariadnegraphql.org";
|
homepage = "https://ariadnegraphql.org";
|
||||||
|
|
Loading…
Reference in a new issue