1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 cython,
8 setuptools,
9
10 # tests
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "reedsolo";
16 version = "1.7.0";
17 format = "pyproject";
18
19 # Pypi does not have the tests
20 src = fetchFromGitHub {
21 owner = "tomerfiliba";
22 repo = "reedsolomon";
23 tag = "v${version}";
24 hash = "sha256-nzdD1oGXHSeGDD/3PpQQEZYGAwn9ahD2KNYGqpgADh0=";
25 };
26
27 nativeBuildInputs = [
28 cython
29 setuptools
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 disabledTestPaths = [
35 "tests/test_creedsolo.py" # TODO: package creedsolo
36 ];
37
38 meta = with lib; {
39 description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
40 homepage = "https://github.com/tomerfiliba/reedsolomon";
41 license = licenses.publicDomain;
42 maintainers = with maintainers; [ yorickvp ];
43 };
44}