1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00

pythonPackages.python-jose: fix build for python 3.6"

This commit is contained in:
Frederik Rietdijk 2019-01-03 08:45:58 +01:00
parent c00dbcb7c4
commit d65a3efc3f

View file

@ -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; {