python310Packages.ariadne: fix build

Fix the format and disable tests that require an unpackaged dependency.

authored by Martin Weinelt and committed by Anderson Torres 8a029042 cad29b77

+12 -1
+12 -1
pkgs/development/python-modules/ariadne/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 + , hatchling 4 5 , freezegun 5 6 , graphql-core 6 7 , opentracing ··· 17 18 buildPythonPackage rec { 18 19 pname = "ariadne"; 19 20 version = "0.18.1"; 20 - format = "setuptools"; 21 + format = "pyproject"; 21 22 22 23 disabled = pythonOlder "3.7"; 23 24 ··· 27 28 rev = "refs/tags/${version}"; 28 29 hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU="; 29 30 }; 31 + 32 + nativeBuildInputs = [ 33 + hatchling 34 + ]; 30 35 31 36 propagatedBuildInputs = [ 32 37 graphql-core ··· 53 58 "test_attempt_parse_request_missing_content_type_raises_bad_request_error" 54 59 "test_attempt_parse_non_json_request_raises_bad_request_error" 55 60 "test_attempt_parse_non_json_request_body_raises_bad_request_error" 61 + ]; 62 + 63 + disabledTestPaths = [ 64 + # missing graphql-sync-dataloader test dep 65 + "tests/test_dataloaders.py" 66 + "tests/wsgi/test_configuration.py" 56 67 ]; 57 68 58 69 meta = with lib; {