Commit edaa90a7 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.python-code-minimap: init at 0.1.1

parent e9674ebd
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -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 { };