nixpkgs/pkgs/development/python-modules/pyring-buffer/default.nix

33 lines
743 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
}:
buildPythonPackage rec {
pname = "pyring-buffer";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "pyring-buffer";
tag = "v${version}";
hash = "sha256-woFFPb+NwYTsQ9YRETHmEnt9KxvNql8NDOBg5Rp0UGE=";
};
nativeBuildInputs = [ setuptools ];
pythonImportsCheck = [ "pyring_buffer" ];
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}