{ lib, buildPythonPackage, fetchFromGitHub, # build-system setuptools, }: buildPythonPackage rec { pname = "pyring-buffer"; version = "1.0.2"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "pyring-buffer"; tag = "v${version}"; hash = "sha256-YBkBuptoOc3d746WkqoCHOr0LuG+QlORt/z1oqSf+AA="; }; nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "pyring_buffer" ]; meta = with lib; { description = "Pure Python ring buffer for bytes"; homepage = "https://github.com/rhasspy/pyring-buffer"; changelog = "https://github.com/rhasspy/pyring-buffer/blob/${src.tag}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ hexa ]; }; }