From e17cf2665d62cd69e9b8e4aaa65ec253047226bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Dec 2023 08:35:28 +0100 Subject: [PATCH 1/2] python311Packages.exrex: refactor --- pkgs/development/python-modules/exrex/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/exrex/default.nix b/pkgs/development/python-modules/exrex/default.nix index 2ef58acc9093..acfd3fde2515 100644 --- a/pkgs/development/python-modules/exrex/default.nix +++ b/pkgs/development/python-modules/exrex/default.nix @@ -2,12 +2,13 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "exrex"; version = "0.11.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -24,6 +25,10 @@ buildPythonPackage rec { --replace "version=about['__version__']," "version='${version}'," ''; + nativeBuildInputs = [ + setuptools + ]; + # Projec thas no released tests doCheck = false; From 879a2948a418a7a307ad59e8fa9a378c71baf2f5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Dec 2023 08:36:15 +0100 Subject: [PATCH 2/2] python311Packages.exrex: add dontWrapPythonPrograms Fixes #271896 --- pkgs/development/python-modules/exrex/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/exrex/default.nix b/pkgs/development/python-modules/exrex/default.nix index acfd3fde2515..fd7982ee778c 100644 --- a/pkgs/development/python-modules/exrex/default.nix +++ b/pkgs/development/python-modules/exrex/default.nix @@ -29,6 +29,8 @@ buildPythonPackage rec { setuptools ]; + dontWrapPythonPrograms = true; + # Projec thas no released tests doCheck = false;