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