2021-01-04 09:42:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aniso8601
|
|
|
|
, graphql-core
|
|
|
|
, graphql-relay
|
2021-02-11 02:56:40 +00:00
|
|
|
, promise
|
2021-01-04 09:42:44 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, pytz
|
|
|
|
, snapshottest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2021-01-10 10:03:08 +00:00
|
|
|
version = "3.0.0b7";
|
2021-01-04 09:42:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
|
|
|
rev = "v${version}";
|
2021-01-10 10:03:08 +00:00
|
|
|
sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
|
2021-01-04 09:42:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-11 02:56:40 +00:00
|
|
|
promise
|
2021-01-04 09:42:44 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2021-02-11 02:56:40 +00:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
2021-01-04 09:42:44 +00:00
|
|
|
pythonImportsCheck = [ "graphene" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GraphQL Framework for Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphene";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|