Skip to content

Commit

Permalink
Merge pull request #116731 from oxzi/bleak-0.11.0
Browse files Browse the repository at this point in the history
pythonPackages.bleak: 0.10.0 -> 0.11.0
  • Loading branch information
SuperSandro2000 committed Mar 18, 2021
2 parents 2af233a + d94723c commit f1fe32d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/development/python-modules/bleak/default.nix
@@ -1,14 +1,16 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, bluez, txdbus, pytest, pytestcov }:
{ lib, buildPythonPackage, isPy3k, fetchPypi
, bluez, dbus-next, pytestCheckHook, pytest-cov
}:

buildPythonPackage rec {
pname = "bleak";
version = "0.10.0";
version = "0.11.0";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "5c3a873965f2910865895e572e7a4f10533d6e150e6ba17936397426bf8d1eee";
sha256 = "1zs5lz3r17a2xn19i4na132iccyjsl9navj0d3v7gks7hlcad5kp";
};

postPatch = ''
Expand All @@ -19,10 +21,11 @@ buildPythonPackage rec {
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
'';

propagatedBuildInputs = [ txdbus ];
checkInputs = [ pytest pytestcov ];
propagatedBuildInputs = [ dbus-next ];

checkPhase = "AGENT_OS=linux py.test";
checkInputs = [ pytestCheckHook pytest-cov ];

pythonImportsCheck = [ "bleak" ];

meta = with lib; {
description = "Bluetooth Low Energy platform Agnostic Klient for Python";
Expand Down

0 comments on commit f1fe32d

Please sign in to comment.