From 418ba054f547d5c06f972e5501aa7a9f5c84c91a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 Feb 2021 15:51:01 +0100 Subject: [PATCH 1/2] python3Packages.python-gammu: init at 3.1 --- .../python-modules/python-gammu/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/python-gammu/default.nix diff --git a/pkgs/development/python-modules/python-gammu/default.nix b/pkgs/development/python-modules/python-gammu/default.nix new file mode 100644 index 00000000000..1548a138947 --- /dev/null +++ b/pkgs/development/python-modules/python-gammu/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub + #, pytestCheckHook +, pythonOlder +, pkg-config +, gammu +}: + +buildPythonPackage rec { + pname = "python-gammu"; + version = "3.1"; + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "gammu"; + repo = pname; + rev = version; + sha256 = "1hw2mfrps6wqfyi40p5mp9r59n1ick6pj4hw5njz0k822pbb33p0"; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ gammu ]; + + # Check with the next release if tests could be run with pytest + # checkInputs = [ pytestCheckHook ]; + # Don't run tests for now + doCheck = false; + pythonImportsCheck = [ "gammu" ]; + + meta = with lib; { + description = "Python bindings for Gammu"; + homepage = "https://github.com/gammu/python-gammu/"; + license = with licenses; [ gpl2Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c8229a8c61b..0fa42c8c7d0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6361,6 +6361,8 @@ in { python-frontmatter = callPackage ../development/python-modules/python-frontmatter { }; + python-gammu = callPackage ../development/python-modules/python-gammu { }; + python-gitlab = callPackage ../development/python-modules/python-gitlab { }; python-gnupg = callPackage ../development/python-modules/python-gnupg { }; From 1f04109d2dac99a8e100b441b67fbe7287d06981 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 Feb 2021 15:51:40 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b2427bb69f5..bb65806ae2b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -751,7 +751,7 @@ "smartthings" = ps: with ps; [ aiohttp-cors hass-nabucasa ]; # missing inputs: pysmartapp pysmartthings "smarty" = ps: with ps; [ ]; # missing inputs: pysmarty "smhi" = ps: with ps; [ ]; # missing inputs: smhi-pkg - "sms" = ps: with ps; [ ]; # missing inputs: python-gammu + "sms" = ps: with ps; [ python-gammu ]; "smtp" = ps: with ps; [ ]; "snapcast" = ps: with ps; [ snapcast ]; "snips" = ps: with ps; [ aiohttp-cors paho-mqtt ];