Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / phe / default.nix
blobfa4c43c59c90120ddf9d1be3685cd86cf8956462
1 { lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
3 let
4   pname = "phe";
5   version = "1.5.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     hash = "sha256-mS+3CR0kJ/DZczlG+PNQrN1NHQEgV/Kq02S6eflwM5w=";
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   };