2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pycryptodome
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|