depot/third_party/nixpkgs/pkgs/development/python-modules/bluetooth-adapters/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

65 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, async-timeout
, dbus-next
, myst-parser
, pytestCheckHook
, sphinxHook
, sphinx-rtd-theme
}:
buildPythonPackage rec {
pname = "bluetooth-adapters";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-mekruNzoix61idaGv/BIgb1fwKcA/+UGOnjX85jQWDQ=";
};
postPatch = ''
# Drop pytest arguments (coverage, ...)
sed -i '/addopts/d' pyproject.toml
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
myst-parser
poetry-core
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [
async-timeout
dbus-next
];
pythonImportsCheck = [
"bluetooth_adapters"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/main/CHANGELOG.md";
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://bluetooth-adapters.readthedocs.io/";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}