python3Packages.reedsolo: 1.5.4 -> 1.7.0
This commit is contained in:
parent
b5eaf5b39e
commit
42e530b18a
1 changed files with 19 additions and 14 deletions
|
@ -1,35 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, cython
|
||||
, nose
|
||||
, setuptools
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "reedsolo";
|
||||
version = "1.5.4";
|
||||
version = "1.7.0";
|
||||
format = "pyproject";
|
||||
|
||||
# Pypi does not have the tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "tomerfiliba";
|
||||
repo = "reedsolomon";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-GUMdL5HclXxqMYasq9kUE7fCqOkjr1D20wjd/E+xPBk=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-nzdD1oGXHSeGDD/3PpQQEZYGAwn9ahD2KNYGqpgADh0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# python3.10 compat; https://github.com/tomerfiliba/reedsolomon/pull/38
|
||||
url = "https://github.com/tomerfiliba/reedsolomon/commit/63e5bd9fc3ca503990c212eb2c77c10589e6d6c3.patch";
|
||||
hash = "sha256-47g+jUsJEAyqGnlzRA1oSyc2XFPUOfH0EW+vcOJzsxI=";
|
||||
})
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ nose ];
|
||||
checkPhase = "nosetests";
|
||||
disabledTestPaths = [
|
||||
"tests/test_creedsolo.py" # TODO: package creedsolo
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
|
||||
|
|
Loading…
Reference in a new issue