Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-describe, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "graphql-core"; version = "3.2.7"; pyproject = true;
src = fetchFromGitHub { owner = "graphql-python"; repo = "graphql-core"; tag = "v${version}"; hash = "sha256-ag8yFf6254dX2xNZMKtVBW5QtI5JOZjzgcZveuoeAss="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "setuptools>=59,<81"' ""
# avoid big pytest-benchmark dependency substituteInPlace setup.cfg \ --replace-fail "addopts = --benchmark-disable" "" '';
build-system = [ poetry-core ];
nativeCheckInputs = [ pytest-asyncio pytest-describe pytestCheckHook ];
disabledTestPaths = [ "tests/benchmarks" ];
pythonImportsCheck = [ "graphql" ];
meta = { changelog = "https://github.com/graphql-python/graphql-core/releases/tag/${src.tag}"; description = "Port of graphql-js to Python"; homepage = "https://github.com/graphql-python/graphql-core"; license = lib.licenses.mit; maintainers = [ ]; };}