From edaa90a74f7a1167d3b2669e6411c72f32df1d79 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Mar 2026 17:32:12 +0000 Subject: [PATCH 1/2] python3Packages.python-code-minimap: init at 0.1.1 --- .../python-code-minimap/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/python-code-minimap/default.nix diff --git a/pkgs/development/python-modules/python-code-minimap/default.nix b/pkgs/development/python-modules/python-code-minimap/default.nix new file mode 100644 index 000000000000..1c80b7cd5bd3 --- /dev/null +++ b/pkgs/development/python-modules/python-code-minimap/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + uv-build, +}: + +buildPythonPackage (finalAttrs: { + pname = "python-code-minimap"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "joouha"; + repo = "python-code-minimap"; + tag = "v${finalAttrs.version}"; + hash = "sha256-zp0F5vJPZAp8lBFBOLWYMuAzlerXDa0vM9P3oBtBjGo="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail \ + "uv_build>=0.9.0,<0.10.0" \ + "uv_build" + ''; + + build-system = [ + uv-build + ]; + + pythonImportsCheck = [ "code_minimap" ]; + + # No tests + doCheck = false; + + meta = { + description = "Pure Python code minimap render"; + homepage = "https://github.com/joouha/python-code-minimap"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 255cbae68748..737af2df9b4b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15423,6 +15423,8 @@ self: super: with self; { python-clementine-remote = callPackage ../development/python-modules/python-clementine-remote { }; + python-code-minimap = callPackage ../development/python-modules/python-code-minimap { }; + python-codon-tables = callPackage ../development/python-modules/python-codon-tables { }; python-coinmarketcap = callPackage ../development/python-modules/python-coinmarketcap { }; From 55439be7473519a6af4afd8e0471fc9f97539c1f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Mar 2026 17:23:07 +0000 Subject: [PATCH 2/2] python3Packages.euporie: 2.10.3 -> 2.10.4 Diff: https://github.com/joouha/euporie/compare/v2.10.3...v2.10.4 --- .../python-modules/euporie/default.nix | 116 +++++++++--------- 1 file changed, 61 insertions(+), 55 deletions(-) diff --git a/pkgs/development/python-modules/euporie/default.nix b/pkgs/development/python-modules/euporie/default.nix index 69eb019afc98..feabf817bf00 100644 --- a/pkgs/development/python-modules/euporie/default.nix +++ b/pkgs/development/python-modules/euporie/default.nix @@ -2,96 +2,100 @@ lib, buildPythonPackage, fetchFromGitHub, - setuptools, + + # build-system hatchling, + setuptools, + + # dependencies aenum, aiohttp, + fastjsonschema, + flatlatex, + fsspec, + imagesize, + ipykernel, + jupyter-client, + jupytext, + linkify-it-py, + markdown-it-py, + mdit-py-plugins, + nbformat, + pillow, + platformdirs, prompt-toolkit, pygments, - nbformat, - jupyter-client, - typing-extensions, - fastjsonschema, - platformdirs, pyperclip, - imagesize, - markdown-it-py, - linkify-it-py, - mdit-py-plugins, - flatlatex, - timg, - pillow, + python-code-minimap, sixelcrop, + timg, + typing-extensions, universal-pathlib, - fsspec, - jupytext, - ipykernel, - pytestCheckHook, + + # tests + html2text, pytest-asyncio, pytest-cov-stub, + pytestCheckHook, python-magic, - html2text, writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "euporie"; - version = "2.10.3"; + version = "2.10.4"; pyproject = true; src = fetchFromGitHub { owner = "joouha"; repo = "euporie"; - tag = "v${version}"; - hash = "sha256-wXHhv5vK17XDGh+2GTaw7hoSi4tC9jGVoyrfw1yt6Zo="; + tag = "v${finalAttrs.version}"; + hash = "sha256-JzCVpI1O+KM+V4fLw+vwAsFbUK5SXZvAZWffzojU0u0="; }; build-system = [ - setuptools hatchling - ]; - - dependencies = [ - aenum - aiohttp - prompt-toolkit - pygments - nbformat - jupyter-client - typing-extensions - fastjsonschema - platformdirs - pyperclip - imagesize - markdown-it-py - linkify-it-py - mdit-py-plugins - flatlatex - timg - pillow - sixelcrop - universal-pathlib - fsspec - jupytext - ipykernel + setuptools ]; pythonRelaxDeps = [ - "aenum" - "linkify-it-py" "markdown-it-py" "mdit-py-plugins" "platformdirs" + "universal-pathlib" + ]; + dependencies = [ + aenum + aiohttp + fastjsonschema + flatlatex + fsspec + imagesize + ipykernel + jupyter-client + jupytext + linkify-it-py + markdown-it-py + mdit-py-plugins + nbformat + pillow + platformdirs + prompt-toolkit + pygments + pyperclip + python-code-minimap + sixelcrop + timg + typing-extensions + universal-pathlib ]; - doCheck = true; - nativeCheckInputs = [ - pytestCheckHook + html2text pytest-asyncio pytest-cov-stub + pytestCheckHook python-magic - html2text writableTmpDirAsHomeHook ]; @@ -106,6 +110,8 @@ buildPythonPackage rec { ``` ''; homepage = "https://euporie.readthedocs.io/"; + downloadPage = "https://github.com/joouha/euporie"; + changelog = "https://github.com/joouha/euporie/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.mit; mainProgram = "euporie"; maintainers = with lib.maintainers; [ @@ -113,4 +119,4 @@ buildPythonPackage rec { renesat ]; }; -} +})