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