1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyring-buffer";
12 version = "1.0.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "rhasspy";
17 repo = "pyring-buffer";
18 tag = "v${version}";
19 hash = "sha256-s0iIcY2cwTbOMrpw14uAYfeAl/MOJTLfZbJr+tmTM6U=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 pythonImportsCheck = [ "pyring_buffer" ];
25
26 meta = with lib; {
27 description = "Pure Python ring buffer for bytes";
28 homepage = "https://github.com/rhasspy/pyring-buffer";
29 changelog = "https://github.com/rhasspy/pyring-buffer/blob/${src.tag}/CHANGELOG.md";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ hexa ];
32 };
33}