python36.pkgs.rsa: fix build

This commit is contained in:
Frederik Rietdijk 2019-01-04 14:22:03 +01:00
parent b245c0cd52
commit 4a7c9e5af2

View File

@ -4,6 +4,8 @@
, unittest2
, pyasn1
, mock
, isPy3k
, pythonOlder
}:
buildPythonPackage rec {
@ -18,6 +20,10 @@ buildPythonPackage rec {
checkInputs = [ unittest2 mock ];
propagatedBuildInputs = [ pyasn1 ];
preConfigure = stdenv.lib.optionalString (isPy3k && pythonOlder "3.7") ''
substituteInPlace setup.py --replace "open('README.md')" "open('README.md',encoding='utf-8')"
'';
meta = with stdenv.lib; {
homepage = https://stuvel.eu/rsa;
license = licenses.asl20;