@@ -0,0 +1,27 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub, cython, nose }:
2+
3+buildPythonPackage rec {
4+ pname = "reedsolo";
5+ version = "1.5.4";
6+
7+ # Pypi does not have the tests
8+ src = fetchFromGitHub {
9+ owner = "tomerfiliba";
10+ repo = "reedsolomon";
11+ # https://github.com/tomerfiliba/reedsolomon/issues/28
12+ rev = "73926cdf81b39009bd6e46c8d49f3bbc0eaad4e4";
13+ sha256 = "03wrr0c32dsl7h9k794b8fwnyzklvmxgriy49mjvvd3val829cc1";
14+ };
15+
16+ nativeBuildInputs = [ cython ];
17+
18+ checkInputs = [ nose ];
19+ checkPhase = "nosetests";
20+
21+ meta = with stdenv.lib; {
22+ description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
23+ homepage = "https://github.com/tomerfiliba/reedsolomon";
24+ license = licenses.publicDomain;
25+ maintainers = with maintainers; [ yorickvp ];
26+ };
27+}