linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / phe / default.nix
blob86a5ec848ace942e66c087c8eb4794a587d26f47
1 { lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
3 let
4   pname = "phe";
5   version = "1.4.0";
6 in
8 buildPythonPackage {
9   inherit pname version;
11   # https://github.com/n1analytics/python-paillier/issues/51
12   disabled = isPyPy || ! isPy3k;
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "0wzlk7d24kp0f5kpm0kvvc88mm42144f5cg9pcpb1dsfha75qy5m";
17   };
19   buildInputs = [ click gmpy2 numpy ];
21   # 29/233 tests fail
22   doCheck = false;
24   meta = with lib; {
25     description = "A library for Partially Homomorphic Encryption in Python";
26     homepage = "https://github.com/n1analytics/python-paillier";
27     license = licenses.gpl3;
28   };