Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-benchmark, pytest-asyncio, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "graphql-core"; version = "3.2.5"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "graphql-python"; repo = "graphql-core"; tag = "v${version}"; hash = "sha256-xZOiQOFWnImDXuvHP9V6BDjIZwlwHSxN/os+UYV4A0M="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "poetry_core>=1,<2" "poetry-core" \ --replace-fail ', "setuptools>=59,<70"' "" '';
build-system = [ poetry-core ];
nativeCheckInputs = [ pytest-asyncio pytest-benchmark pytestCheckHook ];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "graphql" ];
meta = with lib; { changelog = "https://github.com/graphql-python/graphql-core/releases/tag/v${version}"; description = "Port of graphql-js to Python"; homepage = "https://github.com/graphql-python/graphql-core"; license = licenses.mit; maintainers = with maintainers; [ kamadorueda ]; };}