b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, aniso8601
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, graphql-core
|
|
, graphql-relay
|
|
, promise
|
|
, pytest-asyncio
|
|
, pytest-benchmark
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
, pytz
|
|
, snapshottest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "graphene";
|
|
version = "3.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graphql-python";
|
|
repo = "graphene";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-04ocm/Q/CDi5dRNhReuvr5nAiowMZUJrZol/wJOjG50=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aniso8601
|
|
graphql-core
|
|
graphql-relay
|
|
];
|
|
|
|
checkInputs = [
|
|
promise
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-benchmark
|
|
pytest-mock
|
|
pytz
|
|
snapshottest
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--benchmark-disable"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"graphene"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "GraphQL Framework for Python";
|
|
homepage = "https://github.com/graphql-python/graphene";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|