python3Packages.reedsolo: init at 1.5.4

reedsolo: maintain, add tests, fix cython

reedsolo: Apply suggestions from code review

Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>
This commit is contained in:
Yorick van Pelt 2020-11-12 16:23:53 +01:00 committed by Jonathan Ringer
parent 283900f4d2
commit 9ca12dc4c7
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, cython, nose }:
buildPythonPackage rec {
pname = "reedsolo";
version = "1.5.4";
# Pypi does not have the tests
src = fetchFromGitHub {
owner = "tomerfiliba";
repo = "reedsolomon";
# https://github.com/tomerfiliba/reedsolomon/issues/28
rev = "73926cdf81b39009bd6e46c8d49f3bbc0eaad4e4";
sha256 = "03wrr0c32dsl7h9k794b8fwnyzklvmxgriy49mjvvd3val829cc1";
};
nativeBuildInputs = [ cython ];
checkInputs = [ nose ];
checkPhase = "nosetests";
meta = with stdenv.lib; {
description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
homepage = "https://github.com/tomerfiliba/reedsolomon";
license = licenses.publicDomain;
maintainers = with maintainers; [ yorickvp ];
};
}

View file

@ -6185,6 +6185,8 @@ in {
rednose = callPackage ../development/python-modules/rednose { };
reedsolo = callPackage ../development/python-modules/reedsolo { };
regex = callPackage ../development/python-modules/regex { };
regional = callPackage ../development/python-modules/regional { };