From a263ab4e5c321fab27847f74e7adbc93f1796f08 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 21 Oct 2018 09:30:05 +0200 Subject: [PATCH] python.pkgs.pycodestyle: fix building with python37 --- .../development/python-modules/pycodestyle/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 69b8e2bc0d1..43a8e6f9f45 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib, buildPythonPackage, fetchPypi, fetchpatch }: buildPythonPackage rec { pname = "pycodestyle"; @@ -9,6 +9,14 @@ buildPythonPackage rec { sha256 = "cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a"; }; + patches = [ + # https://github.com/PyCQA/pycodestyle/pull/801 + (fetchpatch { + url = https://github.com/PyCQA/pycodestyle/commit/397463014fda3cdefe8d6c9d117ae16d878dc494.patch; + sha256 = "01zask2y2gim5il9lcmlhr2qaadv9v7kaw1y619l8xbjhpbq2zh8"; + }) + ]; + meta = with lib; { description = "Python style guide checker (formerly called pep8)"; homepage = https://pycodestyle.readthedocs.io;