summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyalsaaudio/default.nix
blob: bb5b50059be5805ed668010af8f0c70f3f3acc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 = {
    description = "ALSA wrappers for Python";
    homepage = "https://github.com/larsimmisch/pyalsaaudio";
    changelog = "https://github.com/larsimmisch/pyalsaaudio/blob/${version}/CHANGES.md";
    license = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ timschumi ];
  };
}