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

55 lines
1.1 KiB
Nix

{ lib
, async-timeout
, btsocket
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyric
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bluetooth-auto-recovery";
version = "0.3.2";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-1lzg4OY2FRCgpOVK79Pi5J2zPsL+zDWYLeSX0Icknkw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
async-timeout
btsocket
pyric
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bluetooth_auto_recovery"
];
meta = with lib; {
description = "Library for recovering Bluetooth adapters";
homepage = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}