From afc28939f735ca941338c2ea3fefc055be24a70d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 Feb 2021 12:46:38 +0100 Subject: [PATCH] python3Packages.graphql-relay: 3.0.0 -> 3.1.0 --- .../python-modules/graphql-relay/default.nix | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/graphql-relay/default.nix b/pkgs/development/python-modules/graphql-relay/default.nix index fa6a9ec60a73..08e27c194873 100644 --- a/pkgs/development/python-modules/graphql-relay/default.nix +++ b/pkgs/development/python-modules/graphql-relay/default.nix @@ -1,17 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi, graphql-core, pytestCheckHook }: +{ lib +, buildPythonPackage +, fetchPypi +, graphql-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, typing-extensions +}: buildPythonPackage rec { pname = "graphql-relay"; - version = "3.0.0"; + version = "3.1.0"; src = fetchPypi { inherit pname version; - sha256 = "0mjmpf4abrxfyln0ykxq4xa6lp7xwgqr8631qp011hv0nfl6jgxd"; + sha256 = "sha256-cNWn7lmV6nwqmjflEidmOxpGTx9A6Y/d6VC+VBXf4LQ="; }; - propagatedBuildInputs = [ graphql-core ]; + propagatedBuildInputs = [ + graphql-core + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "graphql_relay" ];