1{
2 lib,
3 buildPythonPackage,
4 cffi,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 wheel,
10}:
11
12buildPythonPackage rec {
13 pname = "pyspx";
14 version = "0.5.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "sphincs";
21 repo = "pyspx";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-hMZ7JZoo5RdUwQYpGjtZznH/O6rBUXv+svfOAI0cjqs=";
24 fetchSubmodules = true;
25 };
26
27 nativeBuildInputs = [
28 cffi
29 setuptools
30 wheel
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "pyspx" ];
36
37 meta = with lib; {
38 description = "Python bindings for SPHINCS";
39 homepage = "https://github.com/sphincs/pyspx";
40 changelog = "https://github.com/sphincs/pyspx/releases/tag/v${version}";
41 license = licenses.cc0;
42 maintainers = with maintainers; [ fab ];
43 };
44}