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