mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
fc6d65a301
Python bindings for SPHINCS https://github.com/sphincs/pyspx
48 lines
867 B
Nix
48 lines
867 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 ];
|
|
};
|
|
}
|