python36.pkgs.rsa: fix build
This commit is contained in:
parent
b245c0cd52
commit
4a7c9e5af2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user