From 47174b2126e4aa6c689e27bd721afb4b52857b36 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 1 Jun 2022 22:11:43 +0200 Subject: [PATCH] python310Packages.pyws66i: init at 1.1 --- .../python-modules/pyws66i/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pyws66i/default.nix diff --git a/pkgs/development/python-modules/pyws66i/default.nix b/pkgs/development/python-modules/pyws66i/default.nix new file mode 100644 index 000000000000..41b56150d0ef --- /dev/null +++ b/pkgs/development/python-modules/pyws66i/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyws66i"; + version = "1.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ssaenger"; + repo = pname; + rev = "v${version}"; + hash = "sha256-NTL2+xLqSNsz4YdUTwr0nFjhm1NNgB8qDnWSoE2sizY="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pyws66i" + ]; + + meta = with lib; { + description = "Library to interface with WS66i 6-zone amplifier"; + homepage = "https://github.com/bigmoby/pyialarmxr"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 189207368ba3..143944f7c454 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8830,6 +8830,8 @@ in { pywlroots = callPackage ../development/python-modules/pywlroots { }; + pyws66i = callPackage ../development/python-modules/pyws66i { }; + pyxattr = callPackage ../development/python-modules/pyxattr { }; pyworld = callPackage ../development/python-modules/pyworld { };