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