diff options
Diffstat (limited to 'pkgs/development/python-modules/gattlib/default.nix')
-rw-r--r-- | pkgs/development/python-modules/gattlib/default.nix | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/gattlib/default.nix b/pkgs/development/python-modules/gattlib/default.nix index c7450d6b6b5b8..370b773c8934c 100644 --- a/pkgs/development/python-modules/gattlib/default.nix +++ b/pkgs/development/python-modules/gattlib/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, -# build -, pkg-config -, glibc -, python + # build + pkg-config, + glibc, + python, -# runtime -, bluez -, boost -, glib + # runtime + bluez, + boost, + glib, }: @@ -23,7 +24,6 @@ buildPythonPackage { inherit pname version; format = "setuptools"; - src = fetchFromGitHub { owner = "oscaracena"; repo = "pygattlib"; @@ -34,9 +34,10 @@ buildPythonPackage { patches = [ (substituteAll { src = ./setup.patch; - boost_version = let - pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; - in + boost_version = + let + pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; + in "boost_python${pythonVersion}"; }) ]; @@ -55,9 +56,7 @@ buildPythonPackage { # has no tests doCheck = false; - pythonImportsCheck = [ - "gattlib" - ]; + pythonImportsCheck = [ "gattlib" ]; meta = with lib; { description = "Python library to use the GATT Protocol for Bluetooth LE devices"; |