1{ lib 2, bitlist 3, buildPythonPackage 4, fe25519 5, fetchPypi 6, fountains 7, parts 8, pytestCheckHook 9, pythonOlder 10, setuptools 11, wheel 12}: 13 14buildPythonPackage rec { 15 pname = "ge25519"; 16 version = "1.5.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-VKDPiSdufWwrNcZSRTByFU4YGoJrm48TDm1nt4VyclA="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 wheel 29 ]; 30 31 propagatedBuildInputs = [ 32 fe25519 33 parts 34 bitlist 35 fountains 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace pyproject.toml \ 44 --replace "--doctest-modules --ignore=docs --cov=ge25519 --cov-report term-missing" "" 45 ''; 46 47 pythonImportsCheck = [ 48 "ge25519" 49 ]; 50 51 meta = with lib; { 52 description = "Python implementation of Ed25519 group elements and operations"; 53 homepage = "https://github.com/nthparty/ge25519"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}