From 443e4c88b5552253de62e0f7f4955e26338d44bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Jan 2021 08:53:18 +0100 Subject: [PATCH] python3Packages.bluepy-devices: init at 0.2.1 --- .../python-modules/bluepy-devices/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/bluepy-devices/default.nix diff --git a/pkgs/development/python-modules/bluepy-devices/default.nix b/pkgs/development/python-modules/bluepy-devices/default.nix new file mode 100644 index 000000000000..c1baeedcb5e4 --- /dev/null +++ b/pkgs/development/python-modules/bluepy-devices/default.nix @@ -0,0 +1,29 @@ +{ lib +, bluepy +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "bluepy-devices"; + version = "0.2.1"; + + src = fetchPypi { + pname = "bluepy_devices"; + inherit version; + sha256 = "02zzzivxq2vifgs65m2rm8pqlsbzsbc419c032irzvfxjx539mr8"; + }; + + propagatedBuildInputs = [ bluepy ]; + + # Project has no test + doCheck = false; + pythonImportsCheck = [ "bluepy_devices" ]; + + meta = with lib; { + description = "Python BTLE Device Interface for bluepy"; + homepage = "https://github.com/bimbar/bluepy_devices"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d567d9b82049..f510f31eb33a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -985,6 +985,8 @@ in { bluepy = callPackage ../development/python-modules/bluepy { }; + bluepy-devices = callPackage ../development/python-modules/bluepy-devices { }; + bme680 = callPackage ../development/python-modules/bme680 { }; bokeh = callPackage ../development/python-modules/bokeh { };