2021-01-04 10:42:44 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aniso8601
|
|
|
|
, graphql-core
|
|
|
|
, graphql-relay
|
2021-02-11 03:56:40 +01:00
|
|
|
, promise
|
2021-01-04 10:42:44 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, pytz
|
|
|
|
, snapshottest
|
2021-05-02 22:56:53 +02:00
|
|
|
, fetchpatch
|
2021-01-04 10:42:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2021-01-10 11:03:08 +01:00
|
|
|
version = "3.0.0b7";
|
2021-01-04 10:42:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
|
|
|
rev = "v${version}";
|
2021-01-10 11:03:08 +01:00
|
|
|
sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
|
2021-01-04 10:42:44 +01:00
|
|
|
};
|
|
|
|
|
2021-05-02 22:56:53 +02:00
|
|
|
patches = [ (fetchpatch {
|
2021-07-02 21:43:13 +02:00
|
|
|
# Allow later aniso8601 releases, https://github.com/graphql-python/graphene/pull/1331
|
2021-05-02 22:56:53 +02:00
|
|
|
url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch";
|
|
|
|
sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk=";
|
|
|
|
}) ];
|
|
|
|
|
2021-01-04 10:42:44 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-11 03:56:40 +01:00
|
|
|
promise
|
2021-01-04 10:42:44 +01:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2021-02-11 03:56:40 +01:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
2021-07-02 21:43:13 +02:00
|
|
|
disabledTests = [
|
|
|
|
# TypeError: Failed: DID NOT RAISE <class...
|
|
|
|
"test_unexpected_error"
|
|
|
|
];
|
|
|
|
|
2021-01-04 10:42:44 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|