blob: e9d8a32b17610dd31c884f6760de5de9ecf411b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pycryptodome,
}:
buildPythonPackage {
pname = "sjcl";
version = "0.2.1";
pyproject = true;
# PyPi release is missing tests
src = fetchFromGitHub {
owner = "berlincode";
repo = "sjcl";
# commit from: 2018-08-16, because there aren't any tags on git
rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd";
hash = "sha256-S4GhNdnL+WvYsnyzP0zkBYCqyJBbsW4PZWgjsUthGe0=";
};
build-system = [ setuptools ];
dependencies = [ pycryptodome ];
pythonImportsCheck = [ "sjcl" ];
meta = {
description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format";
homepage = "https://github.com/berlincode/sjcl";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ binsky ];
};
}
|