nixpkgs/pkgs/development/python-modules/phe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
668 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
2018-09-05 21:04:26 +00:00
let
pname = "phe";
2022-04-21 13:45:22 +00:00
version = "1.5.0";
2018-09-05 21:04:26 +00:00
in
buildPythonPackage {
inherit pname version;
# https://github.com/n1analytics/python-paillier/issues/51
disabled = isPyPy || ! isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-mS+3CR0kJ/DZczlG+PNQrN1NHQEgV/Kq02S6eflwM5w=";
2018-09-05 21:04:26 +00:00
};
buildInputs = [ click gmpy2 numpy ];
# 29/233 tests fail
doCheck = false;
meta = with lib; {
2018-09-05 21:04:26 +00:00
description = "A library for Partially Homomorphic Encryption in Python";
homepage = "https://github.com/n1analytics/python-paillier";
2018-09-05 21:04:26 +00:00
license = licenses.gpl3;
};
}