2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
|
2018-09-05 22:04:26 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "phe";
|
|
|
|
version = "1.4.0";
|
|
|
|
in
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
# https://github.com/n1analytics/python-paillier/issues/51
|
|
|
|
disabled = isPyPy || ! isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0wzlk7d24kp0f5kpm0kvvc88mm42144f5cg9pcpb1dsfha75qy5m";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ click gmpy2 numpy ];
|
|
|
|
|
|
|
|
# 29/233 tests fail
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-05 22:04:26 +01:00
|
|
|
description = "A library for Partially Homomorphic Encryption in Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/n1analytics/python-paillier";
|
2018-09-05 22:04:26 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|