ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / bluetooth-auto-recovery / default.nix
blob602f87584ef7ad53e83c5554b2d216dac78f9615
1 { lib
2 , async-timeout
3 , btsocket
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pyric
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "bluetooth-auto-recovery";
14   version = "0.3.6";
15   format = "pyproject";
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "Bluetooth-Devices";
21     repo = pname;
22     rev = "v${version}";
23     hash = "sha256-2GmBO67sUIjasF5MHrDkZ4D+dk3xN+HNpc7nSN+qTaQ=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     async-timeout
32     btsocket
33     pyric
34   ];
36   checkInputs = [
37     pytestCheckHook
38   ];
40   postPatch = ''
41     substituteInPlace pyproject.toml \
42       --replace " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" ""
43   '';
45   pythonImportsCheck = [
46     "bluetooth_auto_recovery"
47   ];
49   meta = with lib; {
50     description = "Library for recovering Bluetooth adapters";
51     homepage = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };