diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-08-03 18:39:19 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-08-03 23:27:21 +0200 |
commit | b933abab3f741d1b3bb793251000e22f205f9c2c (patch) | |
tree | 3d80aaa3b90eed4f5f9a748155cdcdfeb0022381 /pkgs/development/python-modules/bluetooth-adapters | |
parent | ad6dd3471101a262eb6ed4edf1b17debf3d8b677 (diff) |
python3Packages.bluetooth-adapters: init at 0.1.3
Diffstat (limited to 'pkgs/development/python-modules/bluetooth-adapters')
-rw-r--r-- | pkgs/development/python-modules/bluetooth-adapters/default.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bluetooth-adapters/default.nix b/pkgs/development/python-modules/bluetooth-adapters/default.nix new file mode 100644 index 0000000000000..3de1597154d49 --- /dev/null +++ b/pkgs/development/python-modules/bluetooth-adapters/default.nix @@ -0,0 +1,65 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, async-timeout +, dbus-next +, myst-parser +, pytestCheckHook +, sphinxHook +, sphinx-rtd-theme +}: + +buildPythonPackage rec { + pname = "bluetooth-adapters"; + version = "0.1.3"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "Bluetooth-Devices"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-c96HgcmyiDwvcq8OsZ5s65VmAihz6KtCviP2h6Iu1Fo="; + }; + + 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; + }; +} |