Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pycryptodome, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "sjcl"; 12 version = "0.2.1"; 13 14 format = "setuptools"; 15 16 # PyPi release is missing tests 17 src = fetchFromGitHub { 18 owner = "berlincode"; 19 repo = pname; 20 # commit from: 2018-08-16, because there aren't any tags on git 21 rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd"; 22 sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab"; 23 }; 24 25 propagatedBuildInputs = [ pycryptodome ]; 26 27 nativeCheckInputs = [ unittestCheckHook ]; 28 29 pythonImportsCheck = [ "sjcl" ]; 30 31 meta = with lib; { 32 description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto"; 33 homepage = "https://github.com/berlincode/sjcl"; 34 license = licenses.bsd3; 35 maintainers = with maintainers; [ binsky ]; 36 }; 37}