Files
nixpkgs/pkgs/development/python-modules/ed25519/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
839 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
versioneer,
}:
buildPythonPackage rec {
pname = "ed25519";
version = "1.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "warner";
repo = "python-ed25519";
tag = version;
hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA=";
};
postPatch = ''
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
pythonImportsCheck = [ "ed25519" ];
meta = {
description = "Ed25519 public-key signatures";
mainProgram = "edsig";
homepage = "https://github.com/warner/python-ed25519";
changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ np ];
};
}