3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/rsa/default.nix

38 lines
764 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, unittest2
, pyasn1
2018-11-04 10:35:16 +00:00
, mock
2019-01-04 13:22:03 +00:00
, isPy3k
, pythonOlder
, poetry
}:
buildPythonPackage rec {
pname = "rsa";
2020-07-31 09:56:46 +01:00
version = "4.1.1";
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:46 +01:00
sha256 = "1a7245638fa914ed6196b5e88fa5064cd95c7e65df800ec5d4f288e2b19fb4af";
};
2018-11-04 10:35:16 +00:00
checkInputs = [ unittest2 mock ];
propagatedBuildInputs = [ pyasn1 ];
2019-01-04 13:22:03 +00:00
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";
};
}