From 92a5e138d745bbde5becee4ffa77fb60d661f13d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 29 Oct 2024 21:51:33 +0100 Subject: [PATCH] python312Packages.nicegui-highcharts: init at 2.0.2 NiceGUI with support for Highcharts https://github.com/zauberzeug/nicegui-highcharts --- .../nicegui-highcharts/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/development/python-modules/nicegui-highcharts/default.nix diff --git a/pkgs/development/python-modules/nicegui-highcharts/default.nix b/pkgs/development/python-modules/nicegui-highcharts/default.nix new file mode 100644 index 000000000000..a46750ff0876 --- /dev/null +++ b/pkgs/development/python-modules/nicegui-highcharts/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + setuptools, + docutils, + nicegui, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "nicegui-highcharts"; + version = "2.0.2"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "zauberzeug"; + repo = "nicegui-highcharts"; + rev = "refs/tags/v${version}"; + hash = "sha256-r4X4faU7Nlq/FDbIYbTpvnC1w14XskpsNGtkEXtGrFo="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '"setuptools>=30.3.0,<50",' "" + ''; + + pythonRelaxDeps = [ + "docutils" + "nicegui" + ]; + + build-system = [ + poetry-core + setuptools + ]; + + dependencies = [ + docutils + nicegui + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "nicegui_highcharts" ]; + + meta = { + description = "NiceGUI with support for Highcharts"; + homepage = "https://github.com/zauberzeug/nicegui-highcharts"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 932d4fd3b68d..7d677a5a2598 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8971,6 +8971,8 @@ self: super: with self; { nicegui = callPackage ../development/python-modules/nicegui { }; + nicegui-highcharts = callPackage ../development/python-modules/nicegui-highcharts { }; + nidaqmx = callPackage ../development/python-modules/nidaqmx { }; nikola = callPackage ../development/python-modules/nikola { };