nixpkgs/pkgs/development/python-modules/pyspx/default.nix
2024-05-22 17:32:03 +02:00

45 lines
865 B
Nix

{
lib,
buildPythonPackage,
cffi,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "pyspx";
version = "0.5.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sphincs";
repo = "pyspx";
rev = "refs/tags/v${version}";
hash = "sha256-hMZ7JZoo5RdUwQYpGjtZznH/O6rBUXv+svfOAI0cjqs=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cffi
setuptools
wheel
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyspx" ];
meta = with lib; {
description = "Python bindings for SPHINCS";
homepage = "https://github.com/sphincs/pyspx";
changelog = "https://github.com/sphincs/pyspx/releases/tag/v${version}";
license = licenses.cc0;
maintainers = with maintainers; [ fab ];
};
}