at 22.05-pre 27 lines 778 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, cython, nose }: 2 3buildPythonPackage 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 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}