From 73a4d0d583d6bd8cdd09ce290766737906459157 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Sep 2024 16:19:39 +0200 Subject: [PATCH] python312Packages.cx-freeze: 7.1.1 -> 7.2.0 Changelog: https://github.com/marcelotduarte/cx_Freeze/releases/tag/7.2.0 --- .../python-modules/cx-freeze/default.nix | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/cx-freeze/default.nix b/pkgs/development/python-modules/cx-freeze/default.nix index 44dc7e32fd4b..d8e05e3e70fe 100644 --- a/pkgs/development/python-modules/cx-freeze/default.nix +++ b/pkgs/development/python-modules/cx-freeze/default.nix @@ -1,54 +1,53 @@ { lib, buildPythonPackage, + distutils, fetchPypi, pythonOlder, ncurses, + packaging, setuptools, filelock, - typing-extensions, wheel, patchelf, }: buildPythonPackage rec { pname = "cx-freeze"; - version = "7.1.1"; + version = "7.2.0"; pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.11"; src = fetchPypi { pname = "cx_freeze"; inherit version; - hash = "sha256-M1wwutDj5lNlXyMJkzCEWL7cmXuvW3qZXoZB3rousoc="; + hash = "sha256-xX9xAbTTUTJGSx7IjLiUjDt8W07OS7NUwWCRWJyzNYM="; }; - pythonRelaxDeps = [ - "setuptools" - "wheel" - ]; + postPatch = '' + sed -i /patchelf/d pyproject.toml + # Build system requirements + substituteInPlace pyproject.toml \ + --replace-fail "setuptools>=65.6.3,<71" "setuptools" \ + --replace-fail "wheel>=0.42.0,<=0.43.0" "wheel" + ''; build-system = [ setuptools wheel ]; - buildInputs = [ - ncurses - ]; + buildInputs = [ ncurses ]; dependencies = [ + distutils filelock + packaging setuptools - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions + wheel ]; - postPatch = '' - sed -i /patchelf/d pyproject.toml - ''; - makeWrapperArgs = [ "--prefix" "PATH" @@ -56,7 +55,7 @@ buildPythonPackage rec { (lib.makeBinPath [ patchelf ]) ]; - # fails to find Console even though it exists on python 3.x + # Fails to find Console even though it exists on python 3.x doCheck = false; meta = with lib; {