1{
2 buildPythonPackage,
3 lib,
4 fetchFromGitHub,
5 setuptools,
6 cffi,
7 libsodium,
8 libxeddsa,
9 pytestCheckHook,
10 pytest-cov-stub,
11 nix-update-script,
12}:
13
14buildPythonPackage rec {
15 pname = "xeddsa";
16 version = "1.1.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Syndace";
21 repo = "python-xeddsa";
22 tag = "v${version}";
23 hash = "sha256-5s6ERazWnwYEc0d5e+eSdvOCTklBQVrjzvlNifC2zKU=";
24 };
25
26 passthru.updateScript = nix-update-script { };
27
28 build-system = [ setuptools ];
29
30 buildInputs = [
31 libsodium
32 libxeddsa
33 ];
34
35 dependencies = [ cffi ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-cov-stub
40 ];
41
42 pythonImportsCheck = [ "xeddsa" ];
43
44 meta = {
45 description = "Python bindings to libxeddsa";
46 homepage = "https://github.com/Syndace/python-xeddsa";
47 changelog = "https://github.com/Syndace/python-xeddsa/blob/v${version}/CHANGELOG.md";
48 license = lib.licenses.mit;
49 teams = with lib.teams; [ ngi ];
50 maintainers = with lib.maintainers; [ ];
51 };
52}