python3Packages.pybluez: use correct upstream, fixes build

main
Martin Weinelt 2 years ago
parent e12a1433cc
commit 3e1efa384d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
  1. 35
      pkgs/development/python-modules/pybluez/default.nix
  2. 4
      pkgs/top-level/python-packages.nix

@ -1,32 +1,45 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pkgs
, isPy3k
, bluez
, gattlib
}:
buildPythonPackage rec {
version = "unstable-20160819";
pname = "pybluez";
# requires use2to3, which is no longer supported in setuptools>58
disabled = isPy3k;
propagatedBuildInputs = [ pkgs.bluez ];
version = "unstable-2022-01-28";
format = "setuptools";
src = fetchFromGitHub {
owner = "karulis";
owner = pname;
repo = pname;
rev = "a0b226a61b166e170d48539778525b31e47a4731";
sha256 = "104dm5ngfhqisv1aszdlr3szcav2g3bhsgzmg4qfs09b3i5zj047";
rev = "5096047f90a1f6a74ceb250aef6243e144170f92";
hash = "sha256-GA58DfCFaVzZQA1HYpGQ68bznrt4SX1ojyOVn8hyCGo=";
};
# the tests do not pass
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
};
}

@ -6767,7 +6767,9 @@ in {
pyblock = callPackage ../development/python-modules/pyblock { };
pybluez = callPackage ../development/python-modules/pybluez { };
pybluez = callPackage ../development/python-modules/pybluez {
inherit (pkgs) bluez;
};
pybotvac = callPackage ../development/python-modules/pybotvac { };

Loading…
Cancel
Save