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