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