nixpkgs/pkgs/development/python-modules/simpleaudio/default.nix
2024-09-06 23:25:15 +01:00

33 lines
716 B
Nix

{
alsa-lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
lib,
}:
buildPythonPackage rec {
pname = "simpleaudio";
version = "1.0.4";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "hamiltron";
repo = "py-simple-audio";
rev = version;
sha256 = "12nypzb1m14yip4zrbzin5jc5awyp1d5md5y40g5anj4phb4hx1i";
};
patches = [ ./python312-fix.patch ];
buildInputs = [ alsa-lib ];
meta = with lib; {
homepage = "https://github.com/hamiltron/py-simple-audio";
description = "Simple audio playback Python extension - cross-platform, asynchronous, dependency-free";
license = licenses.mit;
maintainers = with maintainers; [ lucus16 ];
};
}