Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / phe / default.nix
blob0dc423883c4bd9929bab5d7449e7c6fd11f679e1
1 { lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
3 let
4   pname = "phe";
5   version = "1.5.0";
6   format = "setuptools";
7 in
9 buildPythonPackage {
10   inherit pname version;
12   # https://github.com/n1analytics/python-paillier/issues/51
13   disabled = isPyPy || ! isPy3k;
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-mS+3CR0kJ/DZczlG+PNQrN1NHQEgV/Kq02S6eflwM5w=";
18   };
20   buildInputs = [ click gmpy2 numpy ];
22   # 29/233 tests fail
23   doCheck = false;
25   meta = with lib; {
26     description = "A library for Partially Homomorphic Encryption in Python";
27     mainProgram = "pheutil";
28     homepage = "https://github.com/n1analytics/python-paillier";
29     license = licenses.gpl3;
30   };