depot/third_party/nixpkgs/pkgs/development/python-modules/sjcl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
947 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pycryptodome,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "sjcl";
version = "0.2.1";
format = "setuptools";
# PyPi release is missing tests
src = fetchFromGitHub {
owner = "berlincode";
repo = pname;
# commit from: 2018-08-16, because there aren't any tags on git
rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd";
sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab";
};
propagatedBuildInputs = [ pycryptodome ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "sjcl" ];
meta = with lib; {
description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto";
homepage = "https://github.com/berlincode/sjcl";
license = licenses.bsd3;
maintainers = with maintainers; [ binsky ];
};
}