Commit 73a4d0d5 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.cx-freeze: 7.1.1 -> 7.2.0

parent 6b80565d
Loading
Loading
Loading
Loading
+17 −18
Original line number Diff line number Diff line
{
  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; {