From b26556aedf536efe09e20199f30e7c3b75727da8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 9 Oct 2021 15:35:29 +0200 Subject: [PATCH] python3Packages.astroid: relax wrapt constraint, add typing-extensions --- pkgs/development/python-modules/astroid/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix index c79928e58e47..b6ba53055d36 100644 --- a/pkgs/development/python-modules/astroid/default.nix +++ b/pkgs/development/python-modules/astroid/default.nix @@ -1,10 +1,12 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , pythonOlder , isPyPy , lazy-object-proxy , wrapt +, typing-extensions , typed-ast , pytestCheckHook , setuptools-scm @@ -26,6 +28,14 @@ buildPythonPackage rec { SETUPTOOLS_SCM_PRETEND_VERSION=version; + patches = [ + (fetchpatch { + # Allow wrapt 1.13 (https://github.com/PyCQA/astroid/pull/1203) + url = "https://github.com/PyCQA/astroid/commit/fd510e08c2ee862cd284861e02b9bcc9a7fd9809.patch"; + sha256 = "1s10whslcqnyz251fb76qkc9p41gagxljpljsmw89id1wywmjib4"; + }) + ]; + nativeBuildInputs = [ setuptools-scm ]; @@ -34,6 +44,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ lazy-object-proxy wrapt + ] ++ lib.optionals (pythonOlder "3.10") [ + typing-extensions ] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast; checkInputs = [