1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, setuptoolsDarcs
5, pyutil
6}:
7
8buildPythonPackage rec {
9 pname = "zfec";
10 version = "1.5.3";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "b41bd4b0af9c6b3a78bd6734e1e4511475944164375e6241b53df518a366922b";
15 };
16
17 buildInputs = [ setuptoolsDarcs ];
18 propagatedBuildInputs = [ pyutil ];
19
20 # argparse is in the stdlib but zfec doesn't know that.
21 postPatch = ''
22 sed -i -e '/argparse/d' setup.py
23 '';
24
25 meta = with stdenv.lib; {
26 homepage = "http://allmydata.org/trac/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 };
38
39}