Skip to content

Commit

Permalink
python3Packages.pyalsaaudio: init at 0.11.0 (#351536)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 3, 2024
2 parents 229da45 + c713db2 commit 59af35e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/pyalsaaudio/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10413,6 +10413,8 @@ self: super: with self; {

pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { };

pyalsaaudio = callPackage ../development/python-modules/pyalsaaudio { };

pyatag = callPackage ../development/python-modules/pyatag { };

pyatem = callPackage ../development/python-modules/pyatem { };
Expand Down

0 comments on commit 59af35e

Please sign in to comment.