From a8aa77b5dbdedb0864a8ed87c93ad96d4e1ea24f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 14 Apr 2021 23:42:35 +0200 Subject: [PATCH] python3Packages.systembridge: init at 1.1.1 --- .../python-modules/systembridge/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/systembridge/default.nix diff --git a/pkgs/development/python-modules/systembridge/default.nix b/pkgs/development/python-modules/systembridge/default.nix new file mode 100644 index 000000000000..94d41b7b673b --- /dev/null +++ b/pkgs/development/python-modules/systembridge/default.nix @@ -0,0 +1,32 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "systembridge"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "timmo001"; + repo = "system-bridge-connector-py"; + rev = "v${version}"; + sha256 = "0vyfi7nyzkzsgg84n5wh4hzwvx6fybgqdzbabnsmvszb9sm1vlb2"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "systembridge" ]; + + meta = with lib; { + description = "Python module for connecting to System Bridge"; + homepage = "https://github.com/timmo001/system-bridge-connector-py"; + 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 ae97e2dea60a..b032c553a57e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8231,6 +8231,8 @@ in { else callPackage ../development/python-modules/sympy/1_5.nix { }; + systembridge = callPackage ../development/python-modules/systembridge { }; + systemd = callPackage ../development/python-modules/systemd { inherit (pkgs) systemd; };