From c8e7ab2adcfb916a467760d73826a3a30a91d721 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Jul 2026 13:27:05 +0200 Subject: [PATCH] python3Packages.libsass: fix build --- pkgs/development/python-modules/libsass/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/libsass/default.nix b/pkgs/development/python-modules/libsass/default.nix index 348014d5fca4..f26c4bcb09be 100644 --- a/pkgs/development/python-modules/libsass/default.nix +++ b/pkgs/development/python-modules/libsass/default.nix @@ -3,7 +3,7 @@ buildPythonPackage, fetchFromGitHub, libsass, - six, + setuptools_80, pytestCheckHook, werkzeug, }: @@ -11,7 +11,7 @@ buildPythonPackage (finalAttrs: { pname = "libsass"; version = "0.23.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "sass"; @@ -20,13 +20,11 @@ buildPythonPackage (finalAttrs: { hash = "sha256-CiSr9/3EDwpDEzu6VcMBAlm3CtKTmGYbZMnMEjyZVxI="; }; + build-system = [ setuptools_80 ]; + buildInputs = [ libsass ]; - propagatedBuildInputs = [ six ]; - - preBuild = '' - export SYSTEM_SASS=true; - ''; + env.SYSTEM_SASS = "true"; nativeCheckInputs = [ pytestCheckHook @@ -41,6 +39,7 @@ buildPythonPackage (finalAttrs: { description = "Python binding for libsass to compile Sass/SCSS"; mainProgram = "pysassc"; homepage = "https://sass.github.io/libsass-python/"; + downloadPage = "https://github.com/sass/libsass-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sigmanificient ]; };