Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pulsectl, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pulsectl-asyncio"; 12 version = "1.2.0"; 13 pyproject = true; 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-WqUO4eERJkRg6O+gCmjqfdVbBT/3TVVBUUduoIxcPNQ="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pulsectl ]; 27 28 # Tests require a running pulseaudio instance 29 doCheck = false; 30 31 pythonImportsCheck = [ "pulsectl_asyncio" ]; 32 33 meta = with lib; { 34 description = "Python bindings library for PulseAudio"; 35 homepage = "https://github.com/mhthies/pulsectl-asyncio"; 36 changelog = "https://github.com/mhthies/pulsectl-asyncio/releases/tag/v${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}