depot/third_party/nixpkgs/pkgs/development/python-modules/pybluez/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

41 lines
863 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
bluez,
gattlib,
}:
buildPythonPackage rec {
pname = "pybluez";
version = "unstable-2022-01-28";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "5096047f90a1f6a74ceb250aef6243e144170f92";
hash = "sha256-GA58DfCFaVzZQA1HYpGQ68bznrt4SX1ojyOVn8hyCGo=";
};
buildInputs = [ bluez ];
propagatedBuildInputs = [ gattlib ];
# there are no tests
doCheck = false;
pythonImportsCheck = [
"bluetooth"
"bluetooth.ble"
];
meta = with lib; {
description = "Bluetooth Python extension module";
homepage = "https://github.com/pybluez/pybluez";
license = licenses.gpl2;
maintainers = with maintainers; [ leenaars ];
broken = stdenv.hostPlatform.isDarwin; # requires pyobjc-core, pyobjc-framework-Cocoa
};
}