mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
8a02904240
Fix the format and disable tests that require an unpackaged dependency.
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, freezegun
|
|
, graphql-core
|
|
, opentracing
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, snapshottest
|
|
, starlette
|
|
, typing-extensions
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ariadne";
|
|
version = "0.18.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mirumee";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-E7uC+l0Yjol8UPLF4CV+PN49tOUJXNUS5yYdF1oyfwU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
graphql-core
|
|
starlette
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
opentracing
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
snapshottest
|
|
werkzeug
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ariadne"
|
|
];
|
|
|
|
disabledTests = [
|
|
# TypeError: TestClient.request() got an unexpected keyword argument 'content'
|
|
"test_attempt_parse_request_missing_content_type_raises_bad_request_error"
|
|
"test_attempt_parse_non_json_request_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; {
|
|
description = "Python library for implementing GraphQL servers using schema-first approach";
|
|
homepage = "https://ariadnegraphql.org";
|
|
changelog = "https://github.com/mirumee/ariadne/blob/${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|