nixpkgs/pkgs/development/python-modules/graphene/default.nix

66 lines
1.2 KiB
Nix

{ lib
, aniso8601
, buildPythonPackage
, fetchFromGitHub
, graphql-core
, graphql-relay
, promise
, py
, pytest-asyncio
, pytest-benchmark
, pytest-mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, pytz
, snapshottest
}:
buildPythonPackage rec {
pname = "graphene";
version = "3.2.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "graphql-python";
repo = "graphene";
rev = "refs/tags/v${version}";
hash = "sha256-kwF6oXp06w7r1PbPoJTCQ9teTExYMoqvIZDhtv5QNn8=";
};
propagatedBuildInputs = [
aniso8601
graphql-core
graphql-relay
];
nativeCheckInputs = [
promise
py
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";
changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}