Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 681 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } : 2 3let 4 pname = "phe"; 5 version = "1.4.0"; 6in 7 8buildPythonPackage { 9 inherit pname version; 10 11 # https://github.com/n1analytics/python-paillier/issues/51 12 disabled = isPyPy || ! isPy3k; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0wzlk7d24kp0f5kpm0kvvc88mm42144f5cg9pcpb1dsfha75qy5m"; 17 }; 18 19 buildInputs = [ click gmpy2 numpy ]; 20 21 # 29/233 tests fail 22 doCheck = false; 23 24 meta = with stdenv.lib; { 25 description = "A library for Partially Homomorphic Encryption in Python"; 26 homepage = "https://github.com/n1analytics/python-paillier"; 27 license = licenses.gpl3; 28 }; 29}