Unverified Commit 3f1ae27c authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python312Packages.pyinstaller: reformat; 6.10.0 -> 6.11.0; fix build (#353927)

parents 376703b6 16aaf3b4
Loading
Loading
Loading
Loading
+31 −25
Original line number Diff line number Diff line
{
  lib
, buildPythonPackage
, fetchPypi
, setuptools
, zlib
, altgraph
, packaging
, pyinstaller-hooks-contrib
, testers
, pyinstaller
, glibc
, binutils
, macholib
, installShellFiles
, stdenv
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,

  # build-system
  setuptools,

  # native dependencies
  zlib,

  # dependencies
  altgraph,
  macholib,
  packaging,
  pyinstaller-hooks-contrib,

  # tests
  binutils,
  glibc,
  pyinstaller,
  testers,
}:

buildPythonPackage rec {
  pname = "pyinstaller";
  version = "6.10.0";
  version = "6.11.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-FDhA+AVv97kQv48W9s2SzBCmwmgLt20KJdVY1UPSEnA=";
    hash = "sha256-y01DOj2zDZ0Xz18s97tN+Ap4jUk8HWfdgi3FeR2YZK8=";
  };


  build-system = [ setuptools ];

  nativeBuildInputs = [ installShellFiles ];

  buildInputs = [ zlib.dev ];

  dependencies = [
@@ -41,13 +45,15 @@ buildPythonPackage rec {
  ];

  makeWrapperArgs = lib.optionals stdenv.hostPlatform.isLinux [
    "--prefix" "PATH" ":"  (lib.makeBinPath [ glibc binutils ])
    "--prefix"
    "PATH"
    ":"
    (lib.makeBinPath [
      glibc
      binutils
    ])
  ];

  postInstall = ''
    installManPage doc/pyinstaller.1 doc/pyi-makespec.1
  '';

  pythonImportsCheck = [ "PyInstaller" ];

  passthru.tests.version = testers.testVersion {