From 3b51e2d4ee0af52f74575f9a530f27680961ee08 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 1 Aug 2022 13:28:44 +0300 Subject: [PATCH] Backport graphql-core to NixOS 21.11 --- default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 10aa1f5..5453d7b 100644 --- a/default.nix +++ b/default.nix @@ -14,13 +14,30 @@ self: super: rec { ]; propagatedBuildInputs = with self.python39Packages; [ typing-extensions - graphql-core + # graphql-core python-multipart python-dateutil flask pydantic pygments poetry + (buildPythonPackage rec { + pname = "graphql-core"; + version = "3.2.0"; + format = "setuptools"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-huKgvgCL/eGe94OI3opyWh2UKpGQykMcJKYIN5c4A84="; + }; + checkInputs = [ + pytest-asyncio + pytest-benchmark + pytestCheckHook + ]; + pythonImportsCheck = [ + "graphql" + ]; + }) ]; src = python-super.fetchPypi { inherit pname version;