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 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , freezegun 5 , graphql-core 6 , opentracing ··· 17 buildPythonPackage rec { 18 pname = "ariadne"; 19 version = "0.18.1"; 20 - format = "setuptools"; 21 22 disabled = pythonOlder "3.7"; 23 ··· 27 rev = "refs/tags/${version}"; 28 hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU="; 29 }; 30 31 propagatedBuildInputs = [ 32 graphql-core ··· 53 "test_attempt_parse_request_missing_content_type_raises_bad_request_error" 54 "test_attempt_parse_non_json_request_raises_bad_request_error" 55 "test_attempt_parse_non_json_request_body_raises_bad_request_error" 56 ]; 57 58 meta = with lib; {
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , hatchling 5 , freezegun 6 , graphql-core 7 , opentracing ··· 18 buildPythonPackage rec { 19 pname = "ariadne"; 20 version = "0.18.1"; 21 + format = "pyproject"; 22 23 disabled = pythonOlder "3.7"; 24 ··· 28 rev = "refs/tags/${version}"; 29 hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU="; 30 }; 31 + 32 + nativeBuildInputs = [ 33 + hatchling 34 + ]; 35 36 propagatedBuildInputs = [ 37 graphql-core ··· 58 "test_attempt_parse_request_missing_content_type_raises_bad_request_error" 59 "test_attempt_parse_non_json_request_raises_bad_request_error" 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" 67 ]; 68 69 meta = with lib; {