diff --git a/pkgs/development/python-modules/pyalsa/default.nix b/pkgs/development/python-modules/pyalsa/default.nix new file mode 100644 index 0000000000000..1de5531195cd0 --- /dev/null +++ b/pkgs/development/python-modules/pyalsa/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + alsa-lib, + nix-update-script, +}: +let + version = "1.2.12"; +in +buildPythonPackage { + pname = "pyalsa"; + inherit version; + pyproject = true; + + src = fetchFromGitHub { + owner = "alsa-project"; + repo = "alsa-python"; + tag = "v${version}"; + hash = "sha256-a0hqYg4VE6L6PBPZW5aGPa5L16uI9eHGvoyZPMkqsMU="; + }; + + build-system = [ setuptools ]; + + buildInputs = [ alsa-lib ]; + + pythonImportsCheck = [ "pyalsa" ]; + + # Checks require a working ALSA environment + doCheck = false; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Python bindings for the Advanced Linux Sound Architecture (ALSA)"; + homepage = "http://www.alsa-project.org"; + license = with lib.licenses; [ lgpl2Plus ]; + maintainers = with lib.maintainers; [ pluiedev ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e43dff23c8cf1..0ce918951c5b9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10427,6 +10427,8 @@ self: super: with self; { pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { }; + pyalsa = callPackage ../development/python-modules/pyalsa { }; + pyalsaaudio = callPackage ../development/python-modules/pyalsaaudio { }; pyatag = callPackage ../development/python-modules/pyatag { };