From eeca815987e6e65cb6e56aecbadc69e1ebb45a12 Mon Sep 17 00:00:00 2001 From: Jo-Blade Date: Sun, 16 Feb 2025 19:56:45 +0100 Subject: [PATCH 1/2] maintainers: add joblade --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1fecf569fb57..7e7c338f426d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11201,6 +11201,12 @@ githubId = 1385934; keys = [ { fingerprint = "3A13 5C15 E1D5 850D 2F90 AB25 6E14 46DD 451C 6BAF"; } ]; }; + joblade = { + email = "bladeur13@free.fr"; + github = "Jo-Blade"; + githubId = 59778661; + name = "Jo Blade"; + }; jobojeha = { email = "jobojeha@jeppener.de"; github = "jobojeha"; From 96945e6d111f5c6c763479e06f88c936790e5124 Mon Sep 17 00:00:00 2001 From: Jo-Blade Date: Sun, 16 Feb 2025 16:35:41 +0100 Subject: [PATCH 2/2] python3Packages.gotify: init at 0.6.0 --- .../python-modules/gotify/default.nix | 68 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 70 insertions(+) create mode 100644 pkgs/development/python-modules/gotify/default.nix diff --git a/pkgs/development/python-modules/gotify/default.nix b/pkgs/development/python-modules/gotify/default.nix new file mode 100644 index 000000000000..9b1118937bc7 --- /dev/null +++ b/pkgs/development/python-modules/gotify/default.nix @@ -0,0 +1,68 @@ +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + flit-core, + nix-update-script, + httpx, + websockets, + pytestCheckHook, + pytest-asyncio, + typeguard, + gotify-server, +}: + +buildPythonPackage rec { + pname = "gotify"; + version = "0.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "d-k-bo"; + repo = "python-gotify"; + tag = "v${version}"; + hash = "sha256-epm8m2W+ChOvWHZi2ruAD+HJGj+V7NfhmFLKeeqcpoI="; + }; + + build-system = [ flit-core ]; + + dependencies = [ + httpx + websockets + ]; + + # tests raise an exception if the system is not Linux or Windows + doCheck = !stdenv.isDarwin; + + # tests require gotify-server to be located in ./tests/test-server/gotify-linux-{arch} + postPatch = '' + ln -s "${gotify-server}/bin/server" ./tests/test-server/gotify-linux-386 + ln -s "${gotify-server}/bin/server" ./tests/test-server/gotify-linux-amd64 + ln -s "${gotify-server}/bin/server" ./tests/test-server/gotify-linux-arm-7 + ln -s "${gotify-server}/bin/server" ./tests/test-server/gotify-linux-arm64 + ''; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + typeguard + gotify-server + ]; + + pythonImportsCheck = [ + "gotify" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/d-k-bo/python-gotify/releases/tag/v${version}"; + description = "Python library to access your gotify server"; + homepage = "https://github.com/d-k-bo/python-gotify"; + license = lib.licenses.mit; + maintainers = [ + lib.maintainers.joblade + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dddf89675f97..7e34d8cc5f84 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5545,6 +5545,8 @@ self: super: with self; { gotenberg-client = callPackage ../development/python-modules/gotenberg-client { }; + gotify = callPackage ../development/python-modules/gotify { }; + gorilla = callPackage ../development/python-modules/gorilla { }; goslide-api = callPackage ../development/python-modules/goslide-api { };