Unverified Commit d1b7b361 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.cx-logging: unbreak on darwin (#511726)

parents d72b50ca baf449ff
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -17,10 +17,7 @@
  patchelf,
  dmgbuild,

  # tests
  anyio,
  bcrypt,

  darwin,
  python,
  pytest-mock,
  pytestCheckHook,
@@ -82,6 +79,9 @@ buildPythonPackage rec {
    pytestCheckHook
    writableTmpDirAsHomeHook
    versionCheckHook
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    darwin.sigtool
  ];

  versionCheckProgram = "${placeholder "out"}/bin/cxfreeze";
+6 −0
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchFromGitHub,
@@ -21,6 +22,11 @@ buildPythonPackage (finalAttrs: {
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools>=70.1,<75" "setuptools"
  ''
  # The flag -soname isn't recognized by the linker on darwin. Only -install_name is valid.
  + lib.optionalString stdenv.hostPlatform.isDarwin ''
    substituteInPlace setup.py \
      --replace-fail "-soname" "-install_name"
  '';

  build-system = [ setuptools ];