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