Merge pull request #213427 from wegank/safe-pysha3-init

python311Packages.safe-pysha3: init at 1.0.3
This commit is contained in:
Martin Weinelt 2023-01-30 00:25:08 +00:00 committed by GitHub
commit 93b6160490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
}:
buildPythonPackage rec {
pname = "safe-pysha3";
version = "1.0.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Kd+lb9t5ney50BvdfbwPKAb0Ro0sKW+DtuN9hlMZF8I=";
};
checkPhase = ''
runHook preCheck
${python.interpreter} tests.py
runHook postCheck
'';
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 ];
};
}

View File

@ -10186,6 +10186,8 @@ self: super: with self; {
safe = callPackage ../development/python-modules/safe { };
safe-pysha3 = callPackage ../development/python-modules/safe-pysha3 { };
safeio = callPackage ../development/python-modules/safeio { };
safety = callPackage ../development/python-modules/safety { };