Skip to content

Commit

Permalink
python312Packages.pyalsa: init at 1.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev committed Dec 5, 2024
1 parent c997b66 commit edaedeb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/pyalsa/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit edaedeb

Please sign in to comment.