From ffc4826c30d0a556bdd637c76a641aaa3034b912 Mon Sep 17 00:00:00 2001 From: Adam Pyle Date: Sat, 25 May 2024 20:00:07 +1000 Subject: [PATCH 1/2] maintainers: add pyle --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1785b1acdb26..99996bd68c62 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16708,6 +16708,12 @@ github = "PhilippWoelfel"; githubId = 19400064; }; + pyle = { + name = "Adam Pyle"; + email = "adam@pyle.dev"; + github = "pyle"; + githubId = 7279609; + }; pyrolagus = { email = "pyrolagus@gmail.com"; github = "PyroLagus"; From 4434bc6ac233085bde38e85851380ae3bb1ac360 Mon Sep 17 00:00:00 2001 From: Adam Pyle Date: Sat, 25 May 2024 21:11:34 +1000 Subject: [PATCH 2/2] python3Packages.plugp100: init at 5.1.3 --- .../python-modules/plugp100/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/plugp100/default.nix diff --git a/pkgs/development/python-modules/plugp100/default.nix b/pkgs/development/python-modules/plugp100/default.nix new file mode 100644 index 000000000000..cd2c09467ffd --- /dev/null +++ b/pkgs/development/python-modules/plugp100/default.nix @@ -0,0 +1,51 @@ +{ + stdenv, + pkgs, + lib, + buildPythonPackage, + fetchFromGitHub, + certifi, + scapy, + urllib3, + semantic-version, + aiohttp, + jsons, + requests, + # Test inputs + pytestCheckHook, + pyyaml, + pytest-asyncio, + async-timeout, + }: + +buildPythonPackage rec { + pname = "plugp100"; + version = "5.1.3"; + + src = fetchFromGitHub { + owner = "petretiandrea"; + repo = "plugp100"; + rev = version; + sha256 = "sha256-V+9cVBMN8H4oFU51T9BDrLF46xgQHqIsMj8nuPedUGA="; + }; + + propagatedBuildInputs = + [ certifi jsons requests aiohttp semantic-version scapy urllib3 pyyaml ]; + + nativeCheckInputs = [ pytestCheckHook pytest-asyncio async-timeout ]; + + disabledTestPaths = [ + "tests/integration/" + "tests/unit/hub_child/" + "tests/unit/test_plug_strip.py" + "tests/unit/test_hub.py " + "tests/unit/test_klap_protocol.py" + ]; + + meta = with lib; { + description = "Python library to control Tapo Plug P100 devices"; + homepage = "https://github.com/petretiandrea/plugp100"; + license = licenses.gpl3; + maintainers = with maintainers; [ pyle ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2134664da533..e1674064c47b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8965,6 +8965,8 @@ self: super: with self; { nxt-python = callPackage ../development/python-modules/nxt-python { }; + plugp100 = callPackage ../development/python-modules/plugp100 {}; + python-ndn = callPackage ../development/python-modules/python-ndn { }; python-nvd3 = callPackage ../development/python-modules/python-nvd3 { };