1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 10:36:36 +03:00
nixpkgs/pkgs/development/python-modules/rsa/default.nix

38 lines
747 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, unittest2
, pyasn1
2018-11-04 11:35:16 +01:00
, mock
2019-01-04 14:22:03 +01:00
, isPy3k
, pythonOlder
, poetry
}:
buildPythonPackage rec {
pname = "rsa";
2021-03-24 10:28:27 +01:00
version = "4.7.2";
src = fetchPypi {
inherit pname version;
2021-03-24 10:28:27 +01:00
sha256 = "9d689e6ca1b3038bc82bf8d23e944b6b6037bc02301a574935b2dd946e0353b9";
};
2018-11-04 11:35:16 +01:00
checkInputs = [ unittest2 mock ];
propagatedBuildInputs = [ pyasn1 ];
preConfigure = lib.optionalString (isPy3k && pythonOlder "3.7") ''
2019-01-04 14:22:03 +01:00
substituteInPlace setup.py --replace "open('README.md')" "open('README.md',encoding='utf-8')"
'';
# No tests in archive
doCheck = false;
meta = with lib; {
homepage = "https://stuvel.eu/rsa";
license = licenses.asl20;
description = "A pure-Python RSA implementation";
};
}