From d65a3efc3f680f6229883778f1e77c1ae3f15709 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 3 Jan 2019 08:45:58 +0100 Subject: [PATCH] pythonPackages.python-jose: fix build for python 3.6" --- pkgs/development/python-modules/python-jose/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/python-jose/default.nix b/pkgs/development/python-modules/python-jose/default.nix index 4eb2daaf26dc..14daecab4db8 100644 --- a/pkgs/development/python-modules/python-jose/default.nix +++ b/pkgs/development/python-modules/python-jose/default.nix @@ -25,6 +25,11 @@ buildPythonPackage rec { py.test ''; + postPatch = '' + # File says it's utf-8 so instead of relying on the environment, fix the decoding when reading. + substituteInPlace setup.py --replace "open('README.md')" "open('README.md',encoding='utf-8')" + ''; + propagatedBuildInputs = [ future six ecdsa rsa ]; meta = with stdenv.lib; {