mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
phe: init at 1.4.0
This commit is contained in:
parent
083220867c
commit
f051f66c9a
29
pkgs/development/python-modules/phe/default.nix
Normal file
29
pkgs/development/python-modules/phe/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
|
||||
|
||||
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;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library for Partially Homomorphic Encryption in Python";
|
||||
homepage = https://github.com/n1analytics/python-paillier;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
}
|
|
@ -3732,6 +3732,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
phe = callPackage ../development/python-modules/phe { };
|
||||
|
||||
phpserialize = callPackage ../development/python-modules/phpserialize { };
|
||||
|
||||
plaid-python = callPackage ../development/python-modules/plaid-python { };
|
||||
|
|
Loading…
Reference in a new issue