Files
nixpkgs/pkgs/development/python-modules/pyalsaaudio/default.nix
2024-10-26 21:53:50 +02:00

35 lines
767 B
Nix

{
alsa-lib,
buildPythonPackage,
fetchPypi,
lib,
}:
buildPythonPackage rec {
pname = "pyalsaaudio";
version = "0.11.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-p4qdyjNSSyyQZLNOIfWrh0JyMTzzJKmndZLzlqXg/dw=";
};
buildInputs = [
alsa-lib
];
pythonImportsCheck = [ "alsaaudio" ];
# Unit tests exist in test.py, but they require hardware (and therefore /dev) access.
doCheck = false;
meta = with lib; {
description = "ALSA wrappers for Python";
homepage = "https://github.com/larsimmisch/pyalsaaudio";
changelog = "https://github.com/larsimmisch/pyalsaaudio/blob/${version}/CHANGES.md";
license = licenses.psfl;
maintainers = with maintainers; [ timschumi ];
};
}