nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyring-buffer";
12 version = "1.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "rhasspy";
17 repo = "pyring-buffer";
18 tag = "v${version}";
19 hash = "sha256-woFFPb+NwYTsQ9YRETHmEnt9KxvNql8NDOBg5Rp0UGE=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 pythonImportsCheck = [ "pyring_buffer" ];
25
26 meta = {
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 = lib.licenses.asl20;
31 maintainers = with lib.maintainers; [ hexa ];
32 };
33}