Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.1 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, setuptoolsDarcs 5, pyutil 6, isPyPy 7}: 8 9buildPythonPackage rec { 10 pname = "zfec"; 11 version = "1.5.3"; 12 disabled = isPyPy; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "b41bd4b0af9c6b3a78bd6734e1e4511475944164375e6241b53df518a366922b"; 17 }; 18 19 buildInputs = [ setuptoolsDarcs ]; 20 propagatedBuildInputs = [ pyutil ]; 21 22 # argparse is in the stdlib but zfec doesn't know that. 23 postPatch = '' 24 sed -i -e '/argparse/d' setup.py 25 ''; 26 27 meta = with stdenv.lib; { 28 homepage = http://allmydata.org/trac/zfec; 29 description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell"; 30 longDescription = '' 31 Fast, portable, programmable erasure coding a.k.a. "forward 32 error correction": the generation of redundant blocks of 33 information such that if some blocks are lost then the 34 original data can be recovered from the remaining blocks. The 35 zfec package includes command-line tools, C API, Python API, 36 and Haskell API. 37 ''; 38 license = licenses.gpl2Plus; 39 }; 40 41}