From 686274ea62caf12ca5181e8979e3fc52233402ed Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 18 Feb 2020 13:55:56 +0100 Subject: [PATCH] pythonPackages.decorator: fix Python 2 build --- pkgs/development/python-modules/decorator/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix index f23d592919255..efdd5023a2467 100644 --- a/pkgs/development/python-modules/decorator/default.nix +++ b/pkgs/development/python-modules/decorator/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, fetchpatch , fetchPypi }: @@ -12,9 +13,12 @@ buildPythonPackage rec { sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce"; }; - postPatch = '' - substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation" - ''; + patches = [ + (fetchpatch { + url = https://github.com/micheles/decorator/commit/3265f2755d16c0a3dfc9f1feee39722ddc11ee80.patch; + sha256 = "1q5nmff30vccqq5swf2ivm8cn7x3lhz8c9qpj0zddgs2y7fw8syz"; + }) + ]; meta = with lib; { homepage = https://pypi.python.org/pypi/decorator;