Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
855 B · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ 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.isDarwin; # requires pyobjc-core, pyobjc-framework-Cocoa };
}