2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# build-system
|
2022-04-27 09:35:20 +00:00
|
|
|
, cython
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "reedsolo";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.7.0";
|
|
|
|
format = "pyproject";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
# Pypi does not have the tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomerfiliba";
|
|
|
|
repo = "reedsolomon";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-nzdD1oGXHSeGDD/3PpQQEZYGAwn9ahD2KNYGqpgADh0=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_creedsolo.py" # TODO: package creedsolo
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-19 00:13:47 +00:00
|
|
|
description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
|
|
|
|
homepage = "https://github.com/tomerfiliba/reedsolomon";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ yorickvp ];
|
|
|
|
};
|
|
|
|
}
|