fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
34 lines
800 B
Nix
34 lines
800 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "safe-pysha3";
|
|
version = "1.0.4";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-5CkUax7dGYssqTSiBGplZWxdMbDsiUu9YFUSf03q/xc=";
|
|
};
|
|
|
|
# AttributeError: 'Keccak_224Tests' object has no attribute 'failIf'.
|
|
postPatch = ''
|
|
substituteInPlace tests.py \
|
|
--replace "failIf" "assertFalse"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "sha3" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/5afe/pysha3/releases/tag/v${version}";
|
|
description = "SHA-3 (Keccak) for Python 3.9 - 3.11";
|
|
homepage = "https://github.com/5afe/pysha3";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
};
|
|
}
|