From c0913478bdd54e09827065de808194b17e221417 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 6 Jun 2019 16:20:00 -0500 Subject: [PATCH] pythonPackages.asttokens: fix python3 build --- pkgs/development/python-modules/asttokens/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/asttokens/default.nix b/pkgs/development/python-modules/asttokens/default.nix index 3aba3a37c9e..8c8a1b76b1a 100644 --- a/pkgs/development/python-modules/asttokens/default.nix +++ b/pkgs/development/python-modules/asttokens/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchPypi, buildPythonPackage, astroid, six, coverage +{ lib, fetchPypi, buildPythonPackage, fetchpatch, astroid, six, coverage , lazy-object-proxy, nose, wrapt }: @@ -11,6 +11,14 @@ buildPythonPackage rec { sha256 = "1vd4djlxmgznz84gzakkv45avnrcpgl1kir92l1pxyp0z5c0dh2m"; }; + patches = [ + # Fix tests for astroid 2.2 in python 3. Remove with the next release + (fetchpatch { + url = "https://github.com/gristlabs/asttokens/commit/21caaaa74105c410b3d84c3d8ff0dc2f612aac9a.patch"; + sha256 = "182xfr0cx4pxx0dv1l50a1c281h8ywir8vvd1zh5iicflivim1nv"; + }) + ]; + propagatedBuildInputs = [ lazy-object-proxy six wrapt astroid ]; checkInputs = [ coverage nose ];