From 20b9907fbecdf2b2a0a6887bea777daf1f4e2562 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Mon, 20 Jul 2026 16:49:43 +0200 Subject: [PATCH] lesscpy: fix build after pkg_resources removal --- pkgs/by-name/le/lesscpy/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/le/lesscpy/package.nix b/pkgs/by-name/le/lesscpy/package.nix index 2fbfd11e7664..dc7aea86f6f4 100644 --- a/pkgs/by-name/le/lesscpy/package.nix +++ b/pkgs/by-name/le/lesscpy/package.nix @@ -2,6 +2,7 @@ lib, python3Packages, fetchPypi, + fetchpatch, }: python3Packages.buildPythonPackage rec { @@ -14,6 +15,14 @@ python3Packages.buildPythonPackage rec { hash = "sha256-EEXRepj2iGRsp1jf8lTm6cA3RWSOBRoIGwOVw7d8gkw="; }; + patches = [ + # remove use of pkg_resources (drop on next release) + (fetchpatch { + url = "https://github.com/lesscpy/lesscpy/commit/bd8949579713c9d4ff9e15799a26fcecdf73530e.patch"; + hash = "sha256-U1VDqZqHYaUmND5qCkARyU/eDv2QRhGcCDzuN4+XTbo="; + }) + ]; + build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [