11 buildPythonPackage rec {
16 inherit pname version;
17 sha256 = "1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487";
20 checkInputs = [ unittest2 mock ];
21 propagatedBuildInputs = [ pyasn1 ];
23 preConfigure = lib.optionalString (isPy3k && pythonOlder "3.7") ''
24 substituteInPlace setup.py --replace "open('README.md')" "open('README.md',encoding='utf-8')"
28 homepage = "https://stuvel.eu/rsa";
29 license = licenses.asl20;
30 description = "A pure-Python RSA implementation";