wlroots: 0.18.1 -> 0.18.2 (#364488)
[NixPkgs.git] / pkgs / development / python-modules / pybluez / default.nix
blobca745113c592522c587698be5dcb5dd069c14d6e
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   bluez,
7   gattlib,
8 }:
10 buildPythonPackage rec {
11   pname = "pybluez";
12   version = "unstable-2022-01-28";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = pname;
17     repo = pname;
18     rev = "5096047f90a1f6a74ceb250aef6243e144170f92";
19     hash = "sha256-GA58DfCFaVzZQA1HYpGQ68bznrt4SX1ojyOVn8hyCGo=";
20   };
22   buildInputs = [ bluez ];
24   propagatedBuildInputs = [ gattlib ];
26   # there are no tests
27   doCheck = false;
29   pythonImportsCheck = [
30     "bluetooth"
31     "bluetooth.ble"
32   ];
34   meta = with lib; {
35     description = "Bluetooth Python extension module";
36     homepage = "https://github.com/pybluez/pybluez";
37     license = licenses.gpl2;
38     maintainers = with maintainers; [ leenaars ];
39     broken = stdenv.hostPlatform.isDarwin; # requires pyobjc-core, pyobjc-framework-Cocoa
40   };