1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 pythonOlder, 7 setuptools, 8 versioneer, 9}: 10 11buildPythonPackage rec { 12 pname = "ed25519"; 13 version = "1.5"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "warner"; 20 repo = "python-ed25519"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA="; 23 }; 24 25 postPatch = '' 26 rm versioneer.py 27 ''; 28 29 build-system = [ 30 setuptools 31 versioneer 32 ]; 33 34 pythonImportsCheck = [ "ed25519" ]; 35 36 meta = with lib; { 37 description = "Ed25519 public-key signatures"; 38 mainProgram = "edsig"; 39 homepage = "https://github.com/warner/python-ed25519"; 40 changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ np ]; 43 }; 44}