depot/third_party/nixpkgs/pkgs/development/python-modules/reedsolo/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

45 lines
876 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, cython
, setuptools
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "reedsolo";
version = "1.7.0";
format = "pyproject";
# Pypi does not have the tests
src = fetchFromGitHub {
owner = "tomerfiliba";
repo = "reedsolomon";
rev = "refs/tags/v${version}";
hash = "sha256-nzdD1oGXHSeGDD/3PpQQEZYGAwn9ahD2KNYGqpgADh0=";
};
nativeBuildInputs = [
cython
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
"tests/test_creedsolo.py" # TODO: package creedsolo
];
meta = with lib; {
description = "Pure-python universal errors-and-erasures Reed-Solomon Codec";
homepage = "https://github.com/tomerfiliba/reedsolomon";
license = licenses.publicDomain;
maintainers = with maintainers; [ yorickvp ];
};
}