2021-01-09 10:05:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aniso8601
|
|
|
|
, graphql-core
|
|
|
|
, graphql-relay
|
2021-02-13 14:23:35 +00:00
|
|
|
, promise
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, pytz
|
|
|
|
, snapshottest
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchpatch
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "3.0.0b7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
|
|
|
rev = "v${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
# Allow later aniso8601 releases
|
|
|
|
# https://github.com/graphql-python/graphene/pull/1331
|
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch";
|
|
|
|
sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk=";
|
|
|
|
}) ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
promise
|
2021-01-09 10:05:03 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
2021-01-09 10:05:03 +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 ];
|
|
|
|
};
|
|
|
|
}
|