From ba259482537ef3984e90abf0d3861c7a092bf9c4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Dec 2021 12:07:30 +0100 Subject: [PATCH] python3Packages.brelpy: init at 0.0.3 --- .../python-modules/brelpy/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/brelpy/default.nix diff --git a/pkgs/development/python-modules/brelpy/default.nix b/pkgs/development/python-modules/brelpy/default.nix new file mode 100644 index 000000000000..66d611f5e931 --- /dev/null +++ b/pkgs/development/python-modules/brelpy/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pycryptodome +, PyGithub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "brelpy"; + version = "0.0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-MYWSKYd7emHZfY+W/UweQtTg62GSUMybpecL9BR8dhg="; + }; + + propagatedBuildInputs = [ + pycryptodome + ]; + + # Source not tagged and PyPI releases don't contain tests + doCheck = false; + + pythonImportsCheck = [ + "brelpy" + ]; + + meta = with lib; { + description = "Python to communicate with the Brel hubs"; + homepage = "https://gitlab.com/rogiervandergeer/brelpy"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 41656c24a549..93f83e822cdc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1292,6 +1292,8 @@ in { breezy = callPackage ../development/python-modules/breezy { }; + brelpy = callPackage ../development/python-modules/brelpy { }; + broadlink = callPackage ../development/python-modules/broadlink { }; brother = callPackage ../development/python-modules/brother { };