python3Packages.slh-dsa: fix build (#501442)
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pdm-backend,
|
||||
setuptools,
|
||||
mypy,
|
||||
pytestCheckHook,
|
||||
pytest-xdist,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,10 +19,25 @@ buildPythonPackage rec {
|
||||
hash = "sha256-p4eWMVayOFiEjFtlnsmmtH6HMfcIeYIpgdfjuB4mmAY=";
|
||||
};
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
env.SLHDSA_BUILD_OPTIMIZED = "1";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '"mypy>=1.10.1",' ""
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
mypy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "slhdsa" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Pure Python implementation of the SLH-DSA algorithm";
|
||||
homepage = "https://github.com/colinxu2020/slhdsa";
|
||||
|
||||
Reference in New Issue
Block a user