1{ 2 alsa-lib, 3 buildPythonPackage, 4 fetchPypi, 5 lib, 6}: 7 8buildPythonPackage rec { 9 pname = "pyalsaaudio"; 10 version = "0.11.0"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-p4qdyjNSSyyQZLNOIfWrh0JyMTzzJKmndZLzlqXg/dw="; 16 }; 17 18 buildInputs = [ 19 alsa-lib 20 ]; 21 22 pythonImportsCheck = [ "alsaaudio" ]; 23 24 # Unit tests exist in test.py, but they require hardware (and therefore /dev) access. 25 doCheck = false; 26 27 meta = with lib; { 28 description = "ALSA wrappers for Python"; 29 homepage = "https://github.com/larsimmisch/pyalsaaudio"; 30 changelog = "https://github.com/larsimmisch/pyalsaaudio/blob/${version}/CHANGES.md"; 31 license = licenses.psfl; 32 maintainers = with maintainers; [ timschumi ]; 33 }; 34}