13 buildPythonPackage rec {
18 disabled = pythonOlder "3.10";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-TMIqC+JvNOLU38a9jkacRAbdmAAd4UekFUDRoAWhHFo=";
28 substituteInPlace setup.py \
29 --replace-fail "setup_requires" "test_requires"
32 pythonRemoveDeps = [ "enum-compat" ];
34 build-system = [ setuptools ];
36 dependencies = [ pyserial ];
38 optional-dependencies.GATTTOOL = [ pexpect ];
43 ] ++ optional-dependencies.GATTTOOL;
45 pythonImportsCheck = [ "pygatt" ];
48 description = "Python wrapper the BGAPI for accessing Bluetooth LE Devices";
49 homepage = "https://github.com/peplin/pygatt";
50 changelog = "https://github.com/peplin/pygatt/blob/v${version}/CHANGELOG.rst";
51 license = with licenses; [
55 maintainers = with maintainers; [ fab ];