2023-12-27 17:40:25 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyring-buffer";
|
2025-01-19 21:17:38 +01:00
|
|
|
version = "1.0.1";
|
2023-12-27 17:40:25 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhasspy";
|
|
|
|
repo = "pyring-buffer";
|
2025-01-19 21:17:38 +01:00
|
|
|
tag = "v${version}";
|
|
|
|
hash = "sha256-s0iIcY2cwTbOMrpw14uAYfeAl/MOJTLfZbJr+tmTM6U=";
|
2023-12-27 17:40:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyring_buffer" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python ring buffer for bytes";
|
|
|
|
homepage = "https://github.com/rhasspy/pyring-buffer";
|
2025-01-19 21:17:38 +01:00
|
|
|
changelog = "https://github.com/rhasspy/pyring-buffer/blob/${src.tag}/CHANGELOG.md";
|
2023-12-27 17:40:25 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|