Unverified Commit d08e1a3f authored by Robert Schütz's avatar Robert Schütz Committed by Martin Weinelt
Browse files
parent e4c5bb40
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  py,
  poetry-core,
  pytest-benchmark,
  pytest-asyncio,
  pytestCheckHook,
@@ -11,20 +11,28 @@

buildPythonPackage rec {
  pname = "graphql-core";
  version = "3.2.4";
  format = "setuptools";
  version = "3.2.5";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "graphql-python";
    repo = pname;
    repo = "graphql-core";
    rev = "refs/tags/v${version}";
    hash = "sha256-LWmUrkYZuyzQ89Z3dXrce1xk3NODXrHWvWG9zAYTUi0=";
    hash = "sha256-xZOiQOFWnImDXuvHP9V6BDjIZwlwHSxN/os+UYV4A0M=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail ', "setuptools>=59,<70"' ""
  '';

  build-system = [
    poetry-core
  ];

  nativeCheckInputs = [
    py
    pytest-asyncio
    pytest-benchmark
    pytestCheckHook
@@ -33,6 +41,7 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "graphql" ];

  meta = with lib; {
    changelog = "https://github.com/graphql-python/graphql-core/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
    description = "Port of graphql-js to Python";
    homepage = "https://github.com/graphql-python/graphql-core";
    license = licenses.mit;