depot/third_party/nixpkgs/pkgs/development/python-modules/pulsectl-asyncio/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
905 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pulsectl,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pulsectl-asyncio";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mhthies";
repo = "pulsectl-asyncio";
rev = "refs/tags/v${version}";
hash = "sha256-VmogNphVZNJSUKUqp7xADRl78Ooofhl1YYrtYz5MBYc=";
};
build-system = [ setuptools ];
dependencies = [ pulsectl ];
# Tests require a running pulseaudio instance
doCheck = false;
pythonImportsCheck = [ "pulsectl_asyncio" ];
meta = with lib; {
description = "Python bindings library for PulseAudio";
homepage = "https://github.com/mhthies/pulsectl-asyncio";
changelog = "https://github.com/mhthies/pulsectl-asyncio/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}