2024-04-16 10:50:23 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-04-16 11:33:42 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
versioneer,
|
2024-04-16 10:50:23 +00:00
|
|
|
}:
|
2017-05-31 20:59:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ed25519";
|
2019-10-08 07:15:35 +00:00
|
|
|
version = "1.5";
|
2024-04-16 11:33:42 +00:00
|
|
|
pyproject = true;
|
2017-05-31 20:59:52 +00:00
|
|
|
|
2024-04-16 11:33:42 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2024-03-26 15:27:59 +00:00
|
|
|
|
2024-04-16 11:33:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warner";
|
|
|
|
repo = "python-ed25519";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA=";
|
2017-05-31 20:59:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-16 11:33:42 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm versioneer.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ed25519" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-31 20:59:52 +00:00
|
|
|
description = "Ed25519 public-key signatures";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "edsig";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/warner/python-ed25519";
|
2024-04-16 11:33:42 +00:00
|
|
|
changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS";
|
2017-05-31 20:59:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|