1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pulsectl
5, pythonOlder
6, setuptools
7, wheel
8}:
9
10buildPythonPackage rec {
11 pname = "pulsectl-asyncio";
12 version = "1.1.1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "mhthies";
19 repo = "pulsectl-asyncio";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-Uc8iUo9THWNPRRsvJxfw++41cnKrANe/Fk6e8bgLSkc=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 wheel
27 ];
28
29 propagatedBuildInputs = [
30 pulsectl
31 ];
32
33 # Tests require a running pulseaudio instance
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "pulsectl_asyncio"
38 ];
39
40 meta = with lib; {
41 description = "Python bindings library for PulseAudio";
42 homepage = "https://github.com/mhthies/pulsectl-asyncio";
43 changelog = "https://github.com/mhthies/pulsectl-asyncio/releases/tag/v${version}";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}