nixpkgs/pkgs/development/python-modules/phe/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

31 lines
693 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, click, gmpy2, numpy } :
let
pname = "phe";
version = "1.5.0";
format = "setuptools";
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=";
};
buildInputs = [ click gmpy2 numpy ];
# 29/233 tests fail
doCheck = false;
meta = with lib; {
description = "A library for Partially Homomorphic Encryption in Python";
homepage = "https://github.com/n1analytics/python-paillier";
license = licenses.gpl3;
};
}