mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
38 lines
762 B
Nix
38 lines
762 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, unittest2
|
|
, pyasn1
|
|
, mock
|
|
, isPy3k
|
|
, pythonOlder
|
|
, poetry
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rsa";
|
|
version = "4.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa";
|
|
};
|
|
|
|
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')"
|
|
'';
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://stuvel.eu/rsa";
|
|
license = licenses.asl20;
|
|
description = "A pure-Python RSA implementation";
|
|
};
|
|
|
|
}
|