at 23.11-beta 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyutil 5, twisted 6}: 7 8buildPythonPackage rec { 9 pname = "zfec"; 10 version = "1.5.7.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-TuUZvg3MfaLohIK8/Av5d6Ql4dfoJ4z1u7uNAPiir7Y="; 15 }; 16 17 propagatedBuildInputs = [ pyutil ]; 18 19 nativeCheckInputs = [ twisted ]; 20 21 checkPhase = "trial zfec"; 22 23 pythonImportsCheck = [ "zfec" ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/tahoe-lafs/zfec"; 27 description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell"; 28 longDescription = '' 29 Fast, portable, programmable erasure coding a.k.a. "forward 30 error correction": the generation of redundant blocks of 31 information such that if some blocks are lost then the 32 original data can be recovered from the remaining blocks. The 33 zfec package includes command-line tools, C API, Python API, 34 and Haskell API. 35 ''; 36 license = licenses.gpl2Plus; 37 maintainers = with maintainers; [ prusnak ]; 38 }; 39 40}