nixpkgs/pkgs/development/python-modules/rsa/default.nix

28 lines
503 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, unittest2
, pyasn1
2018-11-04 10:35:16 +00:00
, mock
}:
buildPythonPackage rec {
pname = "rsa";
2018-11-04 10:35:16 +00:00
version = "4.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:16 +00:00
sha256 = "1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487";
};
2018-11-04 10:35:16 +00:00
checkInputs = [ unittest2 mock ];
propagatedBuildInputs = [ pyasn1 ];
meta = with stdenv.lib; {
homepage = https://stuvel.eu/rsa;
license = licenses.asl20;
description = "A pure-Python RSA implementation";
};
}