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