59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aniso8601
|
|
, graphql-core
|
|
, graphql-relay
|
|
, promise
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pytest-benchmark
|
|
, pytest-mock
|
|
, pytz
|
|
, snapshottest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "graphene";
|
|
version = "3.0.0b8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graphql-python";
|
|
repo = "graphene";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Pgln369s4qXdKqLxhX+AkgpDQm+MfSZ/OVmB1AaawHI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aniso8601
|
|
graphql-core
|
|
graphql-relay
|
|
];
|
|
|
|
checkInputs = [
|
|
promise
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-benchmark
|
|
pytest-mock
|
|
pytz
|
|
snapshottest
|
|
];
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
disabledTests = [
|
|
# Expects different Exeception classes, but receives none of them
|
|
# https://github.com/graphql-python/graphene/issues/1346
|
|
"test_unexpected_error"
|
|
];
|
|
|
|
pythonImportsCheck = [ "graphene" ];
|
|
|
|
meta = with lib; {
|
|
description = "GraphQL Framework for Python";
|
|
homepage = "https://github.com/graphql-python/graphene";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|