diff --git a/pkgs/development/python-modules/bless/default.nix b/pkgs/development/python-modules/bless/default.nix new file mode 100644 index 000000000000..1bb92c410d8d --- /dev/null +++ b/pkgs/development/python-modules/bless/default.nix @@ -0,0 +1,45 @@ +{ lib +, aioconsole +, bleak +, buildPythonPackage +, fetchFromGitHub +, numpy +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "bless"; + version = "0.2.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "kevincar"; + repo = pname; + rev = "v${version}"; + hash = "sha256-lC1M6/9uawi4KpcK4/fAygENa9rZv9c7qCVdsZYtl5Q="; + }; + + propagatedBuildInputs = [ + bleak + ]; + + checkInputs = [ + aioconsole + numpy + pytestCheckHook + ]; + + pythonImportsCheck = [ + "bless" + ]; + + meta = with lib; { + description = "Library for creating a BLE Generic Attribute Profile (GATT) server"; + homepage = "https://github.com/kevincar/bless"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb552bc98090..a07762b4a3dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1365,6 +1365,8 @@ in { blebox-uniapi = callPackage ../development/python-modules/blebox-uniapi { }; + bless = callPackage ../development/python-modules/bless { }; + blessed = callPackage ../development/python-modules/blessed { }; blessings = callPackage ../development/python-modules/blessings { };